Merge pull request #197 from camandel/tests_unique_name_cs3

tests: add unique name for logs of the third ConfigStore instance
This commit is contained in:
Simone Gotti 2020-01-17 09:19:40 +01:00 committed by GitHub
commit abb44b483b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -274,11 +274,11 @@ func TestResync(t *testing.T) {
cs3Config.DataDir = csDir3
cs3Config.Web.ListenAddress = net.JoinHostPort(listenAddress3, port3)
log.Infof("starting cs3")
cs3, err := NewConfigstore(ctx, logger, &cs3Config)
cs3, err := NewConfigstore(ctx, logger.With(zap.String("name", "cs3")), &cs3Config)
if err != nil {
t.Fatalf("err: %v", err)
}
log.Infof("starting cs3")
ctx3 := context.Background()
go func() { _ = cs3.Run(ctx3) }()