@@ -295,7 +295,7 @@ describe('server selection', function () {
295295 new ObjectId ( ) ,
296296 MIN_SECONDARY_WRITE_WIRE_VERSION
297297 ) ;
298- const selector = secondaryWritableServerSelector ( ) ;
298+ const selector = secondaryWritableServerSelector ( 0 ) ;
299299 const servers = selector (
300300 topologyDescription ,
301301 Array . from ( serverDescriptions . values ( ) ) ,
@@ -401,7 +401,7 @@ describe('server selection', function () {
401401 new ObjectId ( ) ,
402402 MIN_SECONDARY_WRITE_WIRE_VERSION
403403 ) ;
404- const selector = secondaryWritableServerSelector ( ) ;
404+ const selector = secondaryWritableServerSelector ( 0 ) ;
405405 const servers = selector (
406406 topologyDescription ,
407407 Array . from ( serverDescriptions . values ( ) ) ,
@@ -507,7 +507,7 @@ describe('server selection', function () {
507507 new ObjectId ( ) ,
508508 MIN_SECONDARY_WRITE_WIRE_VERSION
509509 ) ;
510- const selector = secondaryWritableServerSelector ( ) ;
510+ const selector = secondaryWritableServerSelector ( 0 ) ;
511511 const servers = selector (
512512 topologyDescription ,
513513 Array . from ( serverDescriptions . values ( ) ) ,
@@ -564,7 +564,7 @@ describe('server selection', function () {
564564 new ObjectId ( ) ,
565565 MIN_SECONDARY_WRITE_WIRE_VERSION
566566 ) ;
567- const selector = secondaryWritableServerSelector ( ) ;
567+ const selector = secondaryWritableServerSelector ( 0 ) ;
568568 const servers = selector (
569569 topologyDescription ,
570570 Array . from ( serverDescriptions . values ( ) ) ,
@@ -587,7 +587,7 @@ describe('server selection', function () {
587587 MIN_SECONDARY_WRITE_WIRE_VERSION ,
588588 { localThresholdMS : 5 }
589589 ) ;
590- const selector = secondaryWritableServerSelector ( ) ;
590+ const selector = secondaryWritableServerSelector ( 0 ) ;
591591 const servers = selector (
592592 topologyDescription ,
593593 Array . from ( serverDescriptions . values ( ) ) ,
0 commit comments