Skip to content

Commit

Permalink
locker_test: stay below 8192 goroutines
Browse files Browse the repository at this point in the history
The Go race detector will kill the test if it tries to have more than
8192 goroutines active at once, so start 8,000 instead of 10,000.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
  • Loading branch information
nalind committed Mar 22, 2021
1 parent 306fcab commit d83ec18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/locker/locker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestLockerConcurrency(t *testing.T) {
l := New()

var wg sync.WaitGroup
for i := 0; i <= 10000; i++ {
for i := 0; i <= 8000; i++ {
wg.Add(1)
go func() {
l.Lock("test")
Expand Down

0 comments on commit d83ec18

Please sign in to comment.