Skip to content

Commit

Permalink
Relax resizable pool timing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mwudka committed Dec 4, 2024
1 parent 17a723a commit 8493b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v1/common/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func testResizablePoolConcurrency(t *testing.T, capChangeSleep time.Duration, ca
// Block on the capacity being set correctly before setting lastCap to the newCap. This ensures the test isn't
// racing against setting the capacity.
<-rs.SetCapacity(newCap)
assert.Less(t, time.Since(preSet), time.Millisecond)
assert.Less(t, time.Since(preSet), 10*time.Millisecond)

// fmt.Printf("Setting capacity to %d. Iteration %d \n", newCap, i)

Expand Down

0 comments on commit 8493b95

Please sign in to comment.