0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

make sure test waits for member to be unblinded

This commit is contained in:
k@ubuntu.(none) 2010-11-19 18:02:48 -05:00 committed by k
parent 43003e0235
commit 45d8f685e5

View File

@ -165,14 +165,19 @@ doTest = function (signal) {
print("\nsync1.js ********************************************************************** part 10");
// now, let's see if rollback works
try {
dbs[0].getSisterDB("admin").runCommand({ replSetTest: 1, blind: false });
}
catch(e) {
print(e);
}
reconnect(dbs[0]);
reconnect(dbs[1]);
wait(function() {
try {
dbs[0].adminCommand({ replSetTest: 1, blind: false });
}
catch(e) {
print(e);
}
reconnect(dbs[0]);
reconnect(dbs[1]);
var status = dbs[1].adminCommand({replSetGetStatus:1});
return status.members[0].health == 1;
});
dbs[0].getMongo().setSlaveOk();