Merge pull request #1303 from hashicorp/b-client_tests
Fix tests for NewServer() in client mode.
This commit is contained in:
commit
1f6211d14e
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue