summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/connections_opened.js
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:20:35 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-27 11:02:23 -0400
commit134a4083953270e8a11430395357fb70a29047ad (patch)
treedd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/noPassthroughWithMongod/connections_opened.js
parent1e46b5049003f427047e723ea5fab15b5a9253ca (diff)
downloadmongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/noPassthroughWithMongod/connections_opened.js')
-rw-r--r--jstests/noPassthroughWithMongod/connections_opened.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/jstests/noPassthroughWithMongod/connections_opened.js b/jstests/noPassthroughWithMongod/connections_opened.js
index ecd2076f2af..20c53b0db1d 100644
--- a/jstests/noPassthroughWithMongod/connections_opened.js
+++ b/jstests/noPassthroughWithMongod/connections_opened.js
@@ -30,12 +30,14 @@ function createPersistentConnection() {
function createTemporaryConnection() {
// Retry connecting until you are successful
- var pollString = "var conn = null;" + "assert.soon(function() {" + "try { conn = new Mongo(\"" +
- db.getMongo().host + "\"); return conn" + "} catch (x) {return false;}}, " +
+ var pollString = "var conn = null;" +
+ "assert.soon(function() {" +
+ "try { conn = new Mongo(\"" + db.getMongo().host + "\"); return conn" +
+ "} catch (x) {return false;}}, " +
"\"Timed out waiting for temporary connection to connect\", 30000, 5000);";
// Poll the signal collection until it is told to terminate.
- pollString += "assert.soon(function() {" + "return conn.getDB('" + testDB +
- "').getCollection('" + signalCollection + "')" +
+ pollString += "assert.soon(function() {" +
+ "return conn.getDB('" + testDB + "').getCollection('" + signalCollection + "')" +
".findOne().stop;}, \"Parallel shell never told to terminate\", 10 * 60000);";
return startParallelShell(pollString, null, true);
}