diff --git a/physical/consul_test.go b/physical/consul_test.go index 0687027e6..92929cc6e 100644 --- a/physical/consul_test.go +++ b/physical/consul_test.go @@ -6,6 +6,7 @@ import ( "math/rand" "os" "reflect" + "sync" "testing" "time" @@ -195,7 +196,9 @@ func TestConsul_newConsulBackend(t *testing.T) { } var shutdownCh ShutdownChannel - if err := c.RunServiceDiscovery(shutdownCh, test.advertiseAddr, testActiveFunc(0.5), testSealedFunc(0.5)); err != nil { + waitGroup := &sync.WaitGroup{} + shutdown := false + if err := c.RunServiceDiscovery(&shutdown, waitGroup, shutdownCh, test.advertiseAddr, testActiveFunc(0.5), testSealedFunc(0.5)); err != nil { t.Fatalf("bad: %v", err) }