diff options
-rw-r--r-- | pkg/api/api0/api0testutil/storage.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/api/api0/api0testutil/storage.go b/pkg/api/api0/api0testutil/storage.go index a32de6d..78c123e 100644 --- a/pkg/api/api0/api0testutil/storage.go +++ b/pkg/api/api0/api0testutil/storage.go @@ -180,7 +180,9 @@ func TestAccountStorage(t *testing.T, s api0.AccountStorage) { users uint64 = 16384 ) if runtime.GOOS != "linux" { - concurrency = 16 // doesn't perform as well for database locking, and it's not our primary target anyways + // doesn't perform as well for database locking (esp Windows), and it's not our primary target anyways + concurrency /= 4 + users /= 4 } var wg sync.WaitGroup var fail atomic.Int32 @@ -512,7 +514,9 @@ func TestPdataStorage(t *testing.T, s api0.PdataStorage) { users uint64 = 16384 ) if runtime.GOOS != "linux" { - concurrency = 16 // doesn't perform as well for database locking, and it's not our primary target anyways + // doesn't perform as well for database locking (esp Windows), and it's not our primary target anyways + concurrency /= 4 + users /= 4 } var wg sync.WaitGroup var fail atomic.Int32 |