summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2014-04-30 12:41:16 -0400
committerDan Pasette <dan@mongodb.com>2014-06-03 16:01:31 -0400
commit3b612717c5a5819dce90ccf6d02883108979488e (patch)
tree6c671985e591c16d1c36ba6b2ff1dba881f955f9
parentac797bc824ca05f700618c23d6ee648ebc285bc5 (diff)
downloadmongo-3b612717c5a5819dce90ccf6d02883108979488e.tar.gz
SERVER-13582 another attempt to fix server6733.js
(cherry picked from commit b32f849719c97dc9c73b22178329d4dda7ad1dd6)
-rw-r--r--jstests/noPassthrough/server6733.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/jstests/noPassthrough/server6733.js b/jstests/noPassthrough/server6733.js
index 085f593c611..3bebc8e2af2 100644
--- a/jstests/noPassthrough/server6733.js
+++ b/jstests/noPassthrough/server6733.js
@@ -32,8 +32,12 @@ print("Force A to sync from B");
A.runCommand({replSetSyncFrom : bAddress});
assert.soon(
function() {
- return A.runCommand({replSetGetStatus : 1}).syncingTo == bAddress;
- }
+ if (A.runCommand({replSetGetStatus : 1}).syncingTo === bAddress) {
+ return true;
+ }
+ A.runCommand({replSetSyncFrom : bAddress});
+ return false;
+ }, "A refused to sync from B", 30*1000, 1000
);
print("Black-hole B");
@@ -44,7 +48,7 @@ sleep(30000);
assert.soon(
function() {
- return A.runCommand({replSetGetStatus : 1}).syncingTo == primaryAddress;
+ return A.runCommand({replSetGetStatus : 1}).syncingTo === primaryAddress;
}
);