mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
new shell test
This commit is contained in:
parent
00a4a0951d
commit
ff70f15cbc
12
jstests/shellstartparallel.js
Normal file
12
jstests/shellstartparallel.js
Normal file
@ -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?");
|
Loading…
Reference in New Issue
Block a user