@@ -533,7 +533,7 @@ func TestClientStress(t *testing.T) {
533
533
// Run tests with various "maxPoolSize" values, including 1-connection pools and the default
534
534
// size of 100, to test how the client handles traffic spikes using different connection
535
535
// pool configurations.
536
- maxPoolSizes := []uint64 {0 , 1 , 10 , 100 }
536
+ maxPoolSizes := []uint64 {1 , 10 , 100 }
537
537
for _ , maxPoolSize := range maxPoolSizes {
538
538
tpm := newTestPoolMonitor ()
539
539
maxPoolSizeOpt := mtest .NewOptions ().ClientOptions (
@@ -572,10 +572,10 @@ func TestClientStress(t *testing.T) {
572
572
errs := findOneFor (mt .Coll , timeout , 1 * time .Second )
573
573
assert .True (mt , len (errs ) == 0 , "expected no errors, but got %d (%v)" , len (errs ), errs )
574
574
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
576
576
// seconds and expect at least some errors to occur.
577
577
g := new (errgroup.Group )
578
- for i := 0 ; i < 2000 ; i ++ {
578
+ for i := 0 ; i < 1000 ; i ++ {
579
579
g .Go (func () error {
580
580
errs := findOneFor (mt .Coll , timeout , 10 * time .Second )
581
581
if len (errs ) == 0 {
0 commit comments