MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / TestDefaultControllerConfigSet

Function TestDefaultControllerConfigSet

config/config_test.go:28–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func 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}

Callers

nothing calls this directly

Calls 2

DefaultFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected