@@ -526,7 +526,7 @@ func TestClientStress(t *testing.T) {
526
526
// Run tests with various "maxPoolSize" values, including 1-connection pools and the default
527
527
// size of 100, to test how the client handles traffic spikes using different connection
528
528
// pool configurations.
529
- maxPoolSizes := []uint64 {0 , 1 , 10 , 100 }
529
+ maxPoolSizes := []uint64 {1 , 10 , 100 }
530
530
for _ , maxPoolSize := range maxPoolSizes {
531
531
tpm := newTestPoolMonitor ()
532
532
maxPoolSizeOpt := mtest .NewOptions ().ClientOptions (
@@ -565,10 +565,10 @@ func TestClientStress(t *testing.T) {
565
565
errs := findOneFor (mt .Coll , timeout , 1 * time .Second )
566
566
assert .True (mt , len (errs ) == 0 , "expected no errors, but got %d (%v)" , len (errs ), errs )
567
567
568
- // Simulate an extreme traffic spike by running 2 ,000 FindOne loops in parallel for 10
568
+ // Simulate an extreme traffic spike by running 1 ,000 FindOne loops in parallel for 10
569
569
// seconds and expect at least some errors to occur.
570
570
g := new (errgroup.Group )
571
- for i := 0 ; i < 2000 ; i ++ {
571
+ for i := 0 ; i < 1000 ; i ++ {
572
572
g .Go (func () error {
573
573
errs := findOneFor (mt .Coll , timeout , 10 * time .Second )
574
574
if len (errs ) == 0 {
0 commit comments