| 9 | ) |
| 10 | |
| 11 | func 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 | |
| 26 | func TestDefaultCLIConfig(t *testing.T) { |
| 27 | cfg := DefaultCLIConfig() |