diff options
| author | Jonathan Reams <jbreams@mongodb.com> | 2016-09-07 14:18:23 -0400 |
|---|---|---|
| committer | Jonathan Reams <jbreams@mongodb.com> | 2016-09-16 10:18:34 -0400 |
| commit | e3b42fd990070f48c11b233cec0c198098d1a48f (patch) | |
| tree | 464665d664b18fe709ccf5e9d039a424b9489a12 /jstests/noPassthroughWithMongod | |
| parent | 7693fa59c4470db729d85af99fb9cc3b264fa8c8 (diff) | |
| download | mongo-e3b42fd990070f48c11b233cec0c198098d1a48f.tar.gz | |
SERVER-26002 Make sure javascript sleep isn't interrupted
Diffstat (limited to 'jstests/noPassthroughWithMongod')
| -rw-r--r-- | jstests/noPassthroughWithMongod/connections_opened.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/noPassthroughWithMongod/connections_opened.js b/jstests/noPassthroughWithMongod/connections_opened.js index 2ec192ed1e2..d3d141ab5a1 100644 --- a/jstests/noPassthroughWithMongod/connections_opened.js +++ b/jstests/noPassthroughWithMongod/connections_opened.js @@ -20,7 +20,8 @@ var signalCollection = 'keepRunning'; function createPersistentConnection() { assert.soon(function() { try { - return new Mongo(db.getMongo().host); + permConns.push(new Mongo(db.getMongo().host)); + return true; } catch (x) { return false; } @@ -95,7 +96,4 @@ jsTestLog("Testing that current connections counter went down after temporary co waitForConnections(originalConnInfo.current + numPerTypeToCreate, originalConnInfo.totalCreated + numPerTypeToCreate * 2); -persistent = null; -gc(); - MongoRunner.stopMongod(mongo); |
