Skip to content

Commit

Permalink
SERVER-7995 Do not check transient condition in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kchodorow committed Dec 26, 2012
1 parent 6ba39d0 commit b02a79e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jstests/replsets/sync_passive2.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,12 @@ replTest.awaitReplication(60000);
printjson(replTest.status());

print("force 2 to sync from 3");
replTest.nodes[2].getDB("admin").runCommand({replSetSyncFrom: replTest.host+":"+replTest.ports[3]});
assert.soon(function() {
return checkSyncingFrom(nodes[2], replTest.host+":"+replTest.ports[3]);
});
// This briefly causes 2 to sync from 3, but members have a strong prefrence for not syncing from
// a slave delayed node so it may switch to another sync source quickly.
result = replTest.nodes[2].getDB("admin")
.runCommand({replSetSyncFrom: replTest.host+":"+replTest.ports[3]});
printjson(result);
assert.eq(1, result.ok);

print("do writes and check that 2 changes sync targets");
assert.soon(function() {
Expand Down

0 comments on commit b02a79e

Please sign in to comment.