summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2013-10-10 11:48:04 -0400
committerMathias Stearn <mathias@10gen.com>2013-10-10 14:52:44 -0400
commitf86275a74e9470a2715fe0b654ac7ee1d7f772a4 (patch)
tree4a648e3c4915ab2703a954200a241d6b5f40be94 /jstests
parent3b33315ab3dedf8314eb3da126dd0fc56555deb9 (diff)
downloadmongo-f86275a74e9470a2715fe0b654ac7ee1d7f772a4.tar.gz
SERVER-10927 Fix replsets/temp_namespace.js failure
Diffstat (limited to 'jstests')
-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"));