summaryrefslogtreecommitdiff
path: root/jstests/shellstartparallel.js
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-01-01 17:29:27 -0500
committerdwight <dwight@10gen.com>2011-01-01 17:29:27 -0500
commit9b6885b71fff4b4cfb34ea6ad8ec0f1c970d6fde (patch)
treeba6ee1c6832cf702ad20e88ab7f0423630b1a669 /jstests/shellstartparallel.js
parent9677a992607fcf1225afc9f6953e4d10ca849f90 (diff)
downloadmongo-9b6885b71fff4b4cfb34ea6ad8ec0f1c970d6fde.tar.gz
crlf
Diffstat (limited to 'jstests/shellstartparallel.js')
-rw-r--r--jstests/shellstartparallel.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/jstests/shellstartparallel.js b/jstests/shellstartparallel.js
index d4b50f2488b..3fbb3e06693 100644
--- a/jstests/shellstartparallel.js
+++ b/jstests/shellstartparallel.js
@@ -1,16 +1,16 @@
-function f() {
- throw "intentional_throw_to_test_assert_throws";
-}
-assert.throws(f);
-
-// verify that join works
-db.sps.drop();
-join = startParallelShell("sleep(1000); db.sps.insert({x:1});");
-join();
-// print(db.sps.count()); // if it didn't work we might get zero here
-assert(db.sps.count() == 1, "join problem?");
-
-// test with a throw
-join = startParallelShell("db.sps.insert({x:1}); throw 'intentionally_uncaught';");
-join();
-assert(db.sps.count() == 2, "join2 problem?");
+function f() {
+ throw "intentional_throw_to_test_assert_throws";
+}
+assert.throws(f);
+
+// verify that join works
+db.sps.drop();
+join = startParallelShell("sleep(1000); db.sps.insert({x:1});");
+join();
+// print(db.sps.count()); // if it didn't work we might get zero here
+assert(db.sps.count() == 1, "join problem?");
+
+// test with a throw
+join = startParallelShell("db.sps.insert({x:1}); throw 'intentionally_uncaught';");
+join();
+assert(db.sps.count() == 2, "join2 problem?");