mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
harden rs test
This commit is contained in:
parent
17f2e3d7e2
commit
3d909045d3
@ -31,9 +31,13 @@ catch(e) {
|
|||||||
var config = master.getDB("local").system.replset.findOne();
|
var config = master.getDB("local").system.replset.findOne();
|
||||||
assert.eq(oldVersion+1, config.version);
|
assert.eq(oldVersion+1, config.version);
|
||||||
|
|
||||||
|
|
||||||
print("0 & 3 up; 1, 2, 4 down");
|
print("0 & 3 up; 1, 2, 4 down");
|
||||||
replTest.restart(3);
|
replTest.restart(3);
|
||||||
|
|
||||||
|
// in case 0 isn't master
|
||||||
|
replTest.awaitReplication();
|
||||||
|
|
||||||
replTest.stop(1);
|
replTest.stop(1);
|
||||||
replTest.stop(2);
|
replTest.stop(2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user