Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Apr 29, 2024
1 parent f785d20 commit 064202e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sync/adaptivewaitgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,16 @@ func TestMultipleResizes(t *testing.T) {

for i := 0; i < 10000; i++ {
if i == 250 {
swg.Resize(context.TODO(), 5) // Increase size at 2500th iteration
err := swg.Resize(context.TODO(), 5) // Increase size at 2500th iteration
require.Nil(t, err)
}
if i == 500 {
swg.Resize(context.TODO(), 1) // Decrease size at 5000th iteration
err := swg.Resize(context.TODO(), 1) // Decrease size at 5000th iteration
require.Nil(t, err)
}
if i == 750 {
swg.Resize(context.TODO(), 3) // Increase size again at 7500th iteration
err := swg.Resize(context.TODO(), 3) // Increase size again at 7500th iteration
require.Nil(t, err)
}

swg.Add()
Expand Down

0 comments on commit 064202e

Please sign in to comment.