diff options
Diffstat (limited to 'jstests/noPassthrough/server6733.js')
-rw-r--r-- | jstests/noPassthrough/server6733.js | 10 |
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; } ); |