Fix unit tests
This commit is contained in:
parent
438becb28b
commit
2395aa481c
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue