summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2016-10-14 13:11:17 -0400
committerJonathan Reams <jbreams@mongodb.com>2016-10-17 11:19:15 -0400
commit40c24abaa05450c612f00209b81d63d3c6acd35b (patch)
treea193eea66cdde7e03e0343f87f85ef3b9f3c0e6a /jstests/noPassthroughWithMongod
parent030fa6ba25c329f8ff5f29b3bbb5a95c6556115d (diff)
downloadmongo-40c24abaa05450c612f00209b81d63d3c6acd35b.tar.gz
SERVER-26596 Make sure test doesn't break other tests and fix memory leak
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/low_js_heap_limit.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/jstests/noPassthroughWithMongod/low_js_heap_limit.js b/jstests/noPassthroughWithMongod/low_js_heap_limit.js
deleted file mode 100644
index 9eb644271d4..00000000000
--- a/jstests/noPassthroughWithMongod/low_js_heap_limit.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// SERVER-26596 This tests that you can set a very low heap limit for javascript, and that it will
-// fail to run any javascript, but won't crash the server.
-(function() {
- 'use strict';
-
- assert.commandWorked(db.adminCommand({setParameter: 1, jsHeapLimitMB: 1}));
-
- assert.commandFailedWithCode(db.runCommand({$eval: 'sleep(10000);'}),
- ErrorCodes.ExceededMemoryLimit);
-
- var returnCode = runProgram("mongo", "--jsHeapLimitMB=1", "--nodb", "--eval='exit();'");
- assert.eq(returnCode, 1);
-}());