From 82d6af35785aa0c4e59fbdc40eed89a69593680a Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Wed, 22 Nov 2023 13:24:46 +0100 Subject: [PATCH] Further reduced parallel connections for db testing --- internal/configuration/database/Database_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/configuration/database/Database_test.go b/internal/configuration/database/Database_test.go index 6d3e6cfe..cd0b8e5d 100644 --- a/internal/configuration/database/Database_test.go +++ b/internal/configuration/database/Database_test.go @@ -401,7 +401,7 @@ func TestParallelConnectionsWritingAndReading(t *testing.T) { test.IsEqualBool(t, ok, false) } - for i := 1; i <= 1000; i++ { + for i := 1; i <= 100; i++ { wg.Add(1) go func() { defer wg.Done() @@ -425,7 +425,7 @@ func TestParallelConnectionsReading(t *testing.T) { test.IsEqualBool(t, ok, true) } - for i := 1; i <= 5000; i++ { + for i := 1; i <= 1000; i++ { wg.Add(1) go func() { defer wg.Done()