MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / TestRotationDefaults

Function TestRotationDefaults

internal/config/config_test.go:11–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestRotationDefaults(t *testing.T) {
12 cfg := New()
13
14 expectedOverlap := 90 * time.Second
15 expectedDrain := 45 * time.Second // Updated to match current normal mode config
16
17 if cfg.Rotation.OverlapWindow != expectedOverlap {
18 t.Errorf("Expected OverlapWindow %v, got %v", expectedOverlap, cfg.Rotation.OverlapWindow)
19 }
20
21 if cfg.Rotation.DrainTimeout != expectedDrain {
22 t.Errorf("Expected DrainTimeout %v, got %v", expectedDrain, cfg.Rotation.DrainTimeout)
23 }
24}
25
26func TestDefaultCLIConfig(t *testing.T) {
27 cfg := DefaultCLIConfig()

Callers

nothing calls this directly

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected