From d049782e2995c27f5382ceed994770e653ffe7ad Mon Sep 17 00:00:00 2001 From: Carlo Mandelli Date: Thu, 16 Jan 2020 12:00:10 +0100 Subject: [PATCH] tests: add unique name for logs of the third ConfigStore instance --- internal/services/configstore/configstore_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/configstore/configstore_test.go b/internal/services/configstore/configstore_test.go index 9be837a..675682f 100644 --- a/internal/services/configstore/configstore_test.go +++ b/internal/services/configstore/configstore_test.go @@ -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) }()