diff --git a/client/client_test.go b/client/client_test.go index 36e3ae169..0ab31eb20 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -60,8 +60,14 @@ func testServer(t *testing.T, cb func(*nomad.Config)) (*nomad.Server, string) { cb(config) } + shutdownCh := make(chan struct{}) + consulSyncer, err := consul.NewSyncer(conf.ConsulConfig, shutdownCh, log.New(os.Stderr, "", log.LstdFlags)) + if err != nil { + t.Fatalf("err: %v", err) + } + // Create server - server, err := nomad.NewServer(config) + server, err := nomad.NewServer(config, consulSyncer) if err != nil { t.Fatalf("err: %v", err) }