Skip to content

Commit

Permalink
Reduce number of goroutines in TestConcurrentCreateGroups (#5294)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
shi0rik0 authored Jul 21, 2023
1 parent 01b5acc commit aaf7aa6
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 aaf7aa6

Please sign in to comment.