Skip to content

Commit

Permalink
test: remove hardcode from roundrobin test (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmqrb committed Oct 3, 2022
1 parent 25affb1 commit 951f7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/roundrobin/roundrobin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func exercise(t *testing.T, rr RoundRobiner, n int) (int64, int64, int64, int64)
var a, b, c, d int64
var wg sync.WaitGroup

wg.Add(100)
for i := 0; i < 100; i++ {
wg.Add(n)
for i := 0; i < n; i++ {
go func() {
pick, err := rr.Pick()
is.True(pick != nil) // pick should not be nil
Expand Down

0 comments on commit 951f7ee

Please sign in to comment.