diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2014-10-15 10:50:05 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2014-10-28 11:49:33 -0400 |
commit | a0e5fbf5e64bd98be827cd11a1d77ade9b5b3128 (patch) | |
tree | e1905267a39d676ff8ff5af8252165f0a32c1fd5 /jstests/replsets/rollback3.js | |
parent | 17917954b999b689cac37695e2885b2d35be9014 (diff) | |
download | mongo-a0e5fbf5e64bd98be827cd11a1d77ade9b5b3128.tar.gz |
SERVER-15836 Clean up several rollback js tests.
Diffstat (limited to 'jstests/replsets/rollback3.js')
-rwxr-xr-x | jstests/replsets/rollback3.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/replsets/rollback3.js b/jstests/replsets/rollback3.js index e54778f8b71..959dad91955 100755 --- a/jstests/replsets/rollback3.js +++ b/jstests/replsets/rollback3.js @@ -11,6 +11,7 @@ * 6. B rejoins the set and goes through the rollback process. * 7. The contents of A and B are compare to ensure the rollback results in consistent nodes. */ +load("jstests/replsets/rslib.js"); (function () { "use strict"; @@ -128,9 +129,9 @@ // put B back in contact with A and arbiter, as A is primary, B will rollback and then catch up replTest.unPartition(1, 2); replTest.unPartition(0, 1); - - assert.soon(function () { try { return B.isMaster().secondary; } catch(e) { return false; } }); - + + awaitOpTime(b.getMongo(), getLatestOp(a_conn).ts); + // await steady state and ensure the two nodes have the same contents replTest.awaitReplication(); checkFinalResults(a); |