From 49ce99389c328b2cc4deadbf3c5f7cd847afbaac Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Mon, 18 Nov 2019 18:43:14 +0300 Subject: [PATCH] Fix app's id manager concurrent test to pass with `race` flag enabled --- pkg/app/idmanager/manager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/idmanager/manager_test.go b/pkg/app/idmanager/manager_test.go index b0fb52cf45..1d5508e6e7 100644 --- a/pkg/app/idmanager/manager_test.go +++ b/pkg/app/idmanager/manager_test.go @@ -46,7 +46,7 @@ func TestManager_ReserveNextID(t *testing.T) { t.Run("concurrent run", func(t *testing.T) { m := New() - valsToReserve := 10000 + valsToReserve := 8000 errs := make(chan error) for i := 0; i < valsToReserve; i++ {