summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2016-12-07 16:11:57 -0500
committerSpencer Jackson <spencer.jackson@mongodb.com>2017-02-02 17:48:07 -0500
commit47da0b53f9cd27aeec1d2822780784866269a47d (patch)
tree39bcdaf2374bab9d0186f07030d1b32c936cdd31 /jstests/libs
parentc742c4ebe789fafa3fccd4b25332a7df0782b252 (diff)
downloadmongo-47da0b53f9cd27aeec1d2822780784866269a47d.tar.gz
SERVER-26952: Cache SCRAM-SHA-1 ClientKey
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/test_background_ops.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/libs/test_background_ops.js b/jstests/libs/test_background_ops.js
index db2361d67c8..dd2f75a9da5 100644
--- a/jstests/libs/test_background_ops.js
+++ b/jstests/libs/test_background_ops.js
@@ -82,6 +82,10 @@ var getResult = function(mongo, name) {
* Overrides the parallel shell code in mongo
*/
function startParallelShell(jsCode, port) {
+ if (TestData) {
+ jsCode = "TestData = " + tojson(TestData) + ";" + jsCode;
+ }
+
var x;
if (port) {
x = startMongoProgramNoConnect("mongo", "--port", port, "--eval", jsCode);