Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix test: retry query after sockets are closed SERVER-6486

  • Loading branch information...
commit b0b4fd2243c92ef73cf03b01866383c7d32f3504 1 parent 44c371c
Kristina kchodorow authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 jstests/replsets/reconfig.js
12 jstests/replsets/reconfig.js
View
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.