0
0
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:
Aaron 2009-04-23 17:27:12 -04:00
parent fe648d0fea
commit 872194083c

View File

@ -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 );