(t *testing.T)
| 26 | ) |
| 27 | |
| 28 | func TestDefaultControllerConfigSet(t *testing.T) { |
| 29 | cfg := Default() |
| 30 | expectedControllerConfig := &ControllerConfig{ |
| 31 | FailOver: &FailOverConfig{ |
| 32 | PingIntervalSeconds: 3, |
| 33 | MaxPingCount: 5, |
| 34 | }, |
| 35 | } |
| 36 | |
| 37 | assert.Equal(t, expectedControllerConfig, cfg.Controller) |
| 38 | } |