From dbcf3fb616db64e1b1f4cb5066113f703ca0b2ee Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Wed, 9 Mar 2022 15:13:05 +0100 Subject: [PATCH] fix(test): parallelization issues --- persistence/sql/persister_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/persistence/sql/persister_test.go b/persistence/sql/persister_test.go index 1fda0ce320f6..a5981de9add7 100644 --- a/persistence/sql/persister_test.go +++ b/persistence/sql/persister_test.go @@ -163,7 +163,9 @@ func TestPersister(t *testing.T) { conns := createCleanDatabases(t) ctx := context.Background() - for name, reg := range conns { + for name := range conns { + name := name + reg := conns[name] t.Run(fmt.Sprintf("database=%s", name), func(t *testing.T) { t.Parallel()