File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/tools/unified-spec-runner Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -629,10 +629,10 @@ export class EntitiesMap<E = Entity> extends Map<string, E> {
629629 if ( entity . client . awaitMinPoolSizeMS ) {
630630 if ( client . topology ?. s ?. servers ) {
631631 const timeout = Timeout . expires ( entity . client . awaitMinPoolSizeMS ) ;
632- const servers = client . topology . s . servers . values ( ) ;
633- const poolSizeChecks = Array . from ( servers ) . map ( server =>
634- checkMinPoolSize ( server . pool )
632+ const servers = Array . from ( client . topology . s . servers . values ( ) ) . filter (
633+ ( { description : { isDataBearing } } ) => isDataBearing
635634 ) ;
635+ const poolSizeChecks = servers . map ( server => checkMinPoolSize ( server . pool ) ) ;
636636 try {
637637 await Promise . race ( [ Promise . allSettled ( poolSizeChecks ) , timeout ] ) ;
638638 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments