Skip to content

Commit

Permalink
new shell test
Browse files Browse the repository at this point in the history
  • Loading branch information
dwight committed Jan 1, 2011
1 parent 00a4a09 commit ff70f15
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jstests/shellstartparallel.js
@@ -0,0 +1,12 @@

// 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?");

0 comments on commit ff70f15

Please sign in to comment.