summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/replsets/temp_namespace.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/replsets/temp_namespace.js b/jstests/replsets/temp_namespace.js
index d2cbe59a95f..55c6941b137 100644
--- a/jstests/replsets/temp_namespace.js
+++ b/jstests/replsets/temp_namespace.js
@@ -42,13 +42,11 @@ assert.eq(secondDB.system.namespaces.count({name: /temp\d\.\$.*$/}) , 4); // ind
assert.eq(secondDB.system.namespaces.count({name: /keep\d$/}) , 4);
// step down primary and make sure former secondary (now primary) drops collections
-var threw = false;
try {
master.adminCommand({replSetStepDown: 50, force : true});
} catch (e) {
- threw = true;
+ // ignoring socket errors since they sometimes, but not always, fire after running that command.
}
-assert(threw);
assert.soon(function() {
printjson(secondDB.adminCommand("replSetGetStatus"));