diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2019-07-30 09:33:19 -0400 |
---|---|---|
committer | Mathew Robinson <chasinglogic@gmail.com> | 2019-08-12 17:28:18 -0400 |
commit | ef9f9b461e1fb9ef92f5450ff0a4dcbed68afc42 (patch) | |
tree | 72269f0d666e7a0f93de9b72ae38bd857b45672a /jstests/parallel | |
parent | b2e2c0fb3aba4228cac47aff35786dc7b386f46c (diff) | |
download | mongo-ef9f9b461e1fb9ef92f5450ff0a4dcbed68afc42.tar.gz |
SERVER-41177 Remove Javascript ScopedThread class
Diffstat (limited to 'jstests/parallel')
-rw-r--r-- | jstests/parallel/basic.js | 2 | ||||
-rw-r--r-- | jstests/parallel/basicPlus.js | 2 | ||||
-rw-r--r-- | jstests/parallel/checkMultiThread.js | 4 | ||||
-rw-r--r-- | jstests/parallel/shellfork.js | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/jstests/parallel/basic.js b/jstests/parallel/basic.js index 1c6ea0e5d7e..8ea755a3307 100644 --- a/jstests/parallel/basic.js +++ b/jstests/parallel/basic.js @@ -9,4 +9,4 @@ for (i in params) { t.add(ParallelTester.fileTester, params[i]); } -t.run("one or more tests failed", true); +t.run("one or more tests failed"); diff --git a/jstests/parallel/basicPlus.js b/jstests/parallel/basicPlus.js index 54d6260002e..44faf5c439b 100644 --- a/jstests/parallel/basicPlus.js +++ b/jstests/parallel/basicPlus.js @@ -28,4 +28,4 @@ for (var i = 4; i < 8; ++i) { t.add(EventGenerator.dispatch, g.getEvents()); } -t.run("one or more tests failed", true); +t.run("one or more tests failed"); diff --git a/jstests/parallel/checkMultiThread.js b/jstests/parallel/checkMultiThread.js index a98b330dd9f..3f0bbe8d6e3 100644 --- a/jstests/parallel/checkMultiThread.js +++ b/jstests/parallel/checkMultiThread.js @@ -6,8 +6,8 @@ var func = function() { db.runCommand({sleep: 1, seconds: 10000}); return new Date(); }; -a = new ScopedThread(func); -b = new ScopedThread(func); +a = new Thread(func); +b = new Thread(func); a.start(); b.start(); a.join(); diff --git a/jstests/parallel/shellfork.js b/jstests/parallel/shellfork.js index 65be8abb33d..b7621279d08 100644 --- a/jstests/parallel/shellfork.js +++ b/jstests/parallel/shellfork.js @@ -30,11 +30,11 @@ z.start(); assert.eq(7, z.returnData()); t = 1; -z = new ScopedThread(function() { +z = new Thread(function() { assert(typeof (t) == "undefined", "t not undefined"); t = 5; return t; }); z.start(); assert.eq(5, z.returnData()); -assert.eq(1, t);
\ No newline at end of file +assert.eq(1, t); |