Skip to content

Commit

Permalink
improve slowWeekly/rollback4.js
Browse files Browse the repository at this point in the history
  • Loading branch information
matt dannenberg committed Jan 29, 2014
1 parent 8f8ef66 commit 0085fa2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions jstests/slowWeekly/rollback4.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,5 @@ master.getDB( 'db' ).c.save( big );

// Restart old master
replTest.restart( 0 );
assert.soon(function () {
res = conns[0].getDB("admin").runCommand({ replSetGetStatus: 1 });
return res.myState == 2;
}, "original master failed to become secondary in under a minute", 60*1000);
replTest.awaitReplication();
// Wait five minutes to ensure there is enough time for rollback
replTest.awaitReplication(5*60*1000);

0 comments on commit 0085fa2

Please sign in to comment.