mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
allow slave to finish initial sync in test MINOR
This commit is contained in:
parent
fe648d0fea
commit
872194083c
@ -51,7 +51,8 @@ doTest = function( signal ) {
|
||||
|
||||
checkWrite( r, l );
|
||||
|
||||
assert.eq( 1, l.getDB( "admin" ).runCommand( {replacepeer:1} ).ok );
|
||||
// allow slave to finish initial sync
|
||||
assert.soon( function() { return 1 == l.getDB( "admin" ).runCommand( {replacepeer:1} ).ok; } );
|
||||
|
||||
// Should not be saved to l.
|
||||
writeOne( r );
|
||||
|
Loading…
Reference in New Issue
Block a user