From a0dab6a571c08a49860fe7081586ac241fca7858 Mon Sep 17 00:00:00 2001 From: shi0rik0 Date: Fri, 21 Jul 2023 15:51:06 +0800 Subject: [PATCH] Reduce number of goroutines in TestConcurrentCreateGroups Currently the number of goroutines created in TestConcurrentCreateGroups is too large that sometimes the limit of 8192 goroutines of the race detector on Windows is exceeded. Reducing the number of goroutines may relieve 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)