Skip to content

Commit

Permalink
Reduce number of goroutines in TestConcurrentCreateGroups
Browse files Browse the repository at this point in the history
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 antrea-io#5261.

Signed-off-by: shi0rik0 <anguuan@outlook.com>
  • Loading branch information
shi0rik0 committed Jul 21, 2023
1 parent 31c3289 commit a0dab6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ovs/openflow/ofctrl_bridge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a0dab6a

Please sign in to comment.