Skip to content

Commit d83ec18

Browse files
committed
locker_test: stay below 8192 goroutines
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 <[email protected]>
1 parent 306fcab commit d83ec18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/locker/locker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func TestLockerConcurrency(t *testing.T) {
9595
l := New()
9696

9797
var wg sync.WaitGroup
98-
for i := 0; i <= 10000; i++ {
98+
for i := 0; i <= 8000; i++ {
9999
wg.Add(1)
100100
go func() {
101101
l.Lock("test")

0 commit comments

Comments
 (0)