summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2016-05-05 14:00:43 -0400
committerJason Carey <jcarey@argv.me>2016-05-06 13:47:32 -0400
commitca2702ed79eb5f2fe5169495557a10d0b68fd0c0 (patch)
tree26e67c949499d1e911a05a74cd26c1ffb0e936cf /jstests
parentea4e60dffbdc7380a95409a0616c788324efbb7a (diff)
downloadmongo-ca2702ed79eb5f2fe5169495557a10d0b68fd0c0.tar.gz
SERVER-24058 make connpool asio use setup timeouts
We were ignoring passed setup timeouts, which caused connection acquisition to hang forever in connect if the other side didn't accept or refuse a connection.
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/startup_with_all_configs_down.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/sharding/startup_with_all_configs_down.js b/jstests/sharding/startup_with_all_configs_down.js
index 5ad2ef56eb6..32609a04484 100644
--- a/jstests/sharding/startup_with_all_configs_down.js
+++ b/jstests/sharding/startup_with_all_configs_down.js
@@ -56,7 +56,9 @@
var error = assert.throws(function() {
st.s.getDB('test').foo.find().itcount();
});
- assert.eq(ErrorCodes.ExceededTimeLimit, error.code);
+
+ assert(ErrorCodes.ReplicaSetNotFound == error.code ||
+ ErrorCodes.ExceededTimeLimit == error.code || ErrorCodes.HostUnreachable == error.code);
jsTestLog("Restarting the config servers");
for (var i = 0; i < st._configServers.length; i++) {