Fix unit tests

This commit is contained in:
Sean Chittenden 2016-05-27 03:46:52 -07:00
parent 438becb28b
commit 2395aa481c
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ func testClient(t *testing.T, cb func(c *config.Config)) *Client {
cb(conf)
}
consulSyncer, err := consul.NewSyncer(conf, log.New(os.Stderr, "", log.LstdFlags))
consulSyncer, err := consul.NewSyncer(conf.ConsulConfig, log.New(os.Stderr, "", log.LstdFlags))
if err != nil {
t.Fatalf("err: %v", err)
}
@ -469,7 +469,7 @@ func TestClient_SaveRestoreState(t *testing.T) {
}
// Create a new client
consulSyncer, err := consul.NewSyncer(c1.config, log.New(os.Stderr, "", log.LstdFlags))
consulSyncer, err := consul.NewSyncer(c1.config.ConsulConfig, log.New(os.Stderr, "", log.LstdFlags))
if err != nil {
t.Fatalf("err: %v", err)
}