Skip to content

Commit

Permalink
Fix test: retry query after sockets are closed SERVER-6486
Browse files Browse the repository at this point in the history
  • Loading branch information
kchodorow committed Jul 17, 2012
1 parent 44c371c commit b0b4fd2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions jstests/replsets/reconfig.js
Expand Up @@ -36,8 +36,16 @@ catch(e) {
print(e);
}

var config = master.getDB("local").system.replset.findOne();
assert.eq(oldVersion+1, config.version);
assert.soon(function() {
try {
var config = master.getDB("local").system.replset.findOne();
return oldVersion+1 == config.version;
}
catch (e) {
print("Query failed: "+e);
return false;
}
});


print("0 & 3 up; 1, 2, 4 down");
Expand Down

0 comments on commit b0b4fd2

Please sign in to comment.