Merge pull request #1303 from hashicorp/b-client_tests

Fix tests for NewServer() in client mode.
This commit is contained in:
Sean Chittenden 2016-06-16 16:35:48 -07:00 committed by GitHub
commit 1f6211d14e

View file

@ -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)
}