File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ load("jstests/replsets/rslib.js"); // For startSetIfSupportsReadMajority.
263263 const setUpInitialState = function setUpInitialState ( ) {
264264 assert . commandWorked ( mainDB . dropDatabase ( ) ) ;
265265 test . prepare ( mainDB ) ;
266- mainDB . getLastError ( 'majority' , 60 * 1000 ) ;
266+ replTest . awaitReplication ( ) ;
267267 // Do some sanity checks.
268268 assertReadsSucceed ( otherDBCollection ) ;
269269 test . blockedCollections . forEach ( ( name ) => assertReadsSucceed ( mainDB [ name ] ) ) ;
@@ -325,7 +325,7 @@ load("jstests/replsets/rslib.js"); // For startSetIfSupportsReadMajority.
325325 // unblocked.
326326 assert . commandWorked (
327327 secondary . adminCommand ( { configureFailPoint : "rsSyncApplyStop" , mode : "off" } ) ) ;
328- mainDB . getLastError ( "majority" , 60 * 1000 ) ;
328+ replTest . awaitReplication ( ) ;
329329 test . blockedCollections . forEach ( ( name ) => assertReadsSucceed ( mainDB [ name ] ) ) ;
330330
331331 // Wait for the threads to complete and report any errors encountered from running them.
You can’t perform that action at this time.
0 commit comments