Skip to content

Commit

Permalink
Merge pull request agola-io#197 from camandel/tests_unique_name_cs3
Browse files Browse the repository at this point in the history
tests: add unique name for logs of the third ConfigStore instance
  • Loading branch information
sgotti authored Jan 17, 2020
2 parents ea667ff + 8a30f9c commit 17dbd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/configstore/configstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) }()

Expand Down

0 comments on commit 17dbd83

Please sign in to comment.