Skip to content

Commit 39c03de

Browse files
committed
Fix TestClientStress test.
1 parent f92a927 commit 39c03de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mongo/integration/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,10 @@ func TestClientStress(t *testing.T) {
572572
errs := findOneFor(mt.Coll, timeout, 1*time.Second)
573573
assert.True(mt, len(errs) == 0, "expected no errors, but got %d (%v)", len(errs), errs)
574574

575-
// Simulate an extreme traffic spike by running 2,000 FindOne loops in parallel for 10
575+
// Simulate an extreme traffic spike by running 1,000 FindOne loops in parallel for 10
576576
// seconds and expect at least some errors to occur.
577577
g := new(errgroup.Group)
578-
for i := 0; i < 2000; i++ {
578+
for i := 0; i < 1000; i++ {
579579
g.Go(func() error {
580580
errs := findOneFor(mt.Coll, timeout, 10*time.Second)
581581
if len(errs) == 0 {

0 commit comments

Comments
 (0)