From aaf7aa64bd5262ba8fb4383fa5a1f02df6fd003b Mon Sep 17 00:00:00 2001 From: shi0rik0 Date: Sat, 22 Jul 2023 01:54:56 +0800 Subject: [PATCH] Reduce number of goroutines in TestConcurrentCreateGroups (#5294) Currently the number of goroutines created in TestConcurrentCreateGroups is so large that sometimes the limit of 8192 goroutines of the race detector on Windows is exceeded. Reducing the number of goroutines may resolve the problem. Fixes #5261. Signed-off-by: shi0rik0 --- pkg/ovs/openflow/ofctrl_bridge_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ovs/openflow/ofctrl_bridge_test.go b/pkg/ovs/openflow/ofctrl_bridge_test.go index 4b684f08366..6d285a4fba5 100644 --- a/pkg/ovs/openflow/ofctrl_bridge_test.go +++ b/pkg/ovs/openflow/ofctrl_bridge_test.go @@ -122,7 +122,7 @@ func TestConcurrentCreateGroups(t *testing.T) { b := NewOFBridge("test-br", GetMgmtAddress(ovsconfig.DefaultOVSRunDir, "test-br")) b.SwitchConnected(newFakeOFSwitch(b)) // Race detector on Windows has limit of 8192 simultaneously alive goroutines. - concurrentNum := 8000 + concurrentNum := 7000 var wg sync.WaitGroup for i := 0; i < concurrentNum; i++ { wg.Add(1)