diff options
author | Aaron <aaron@10gen.com> | 2011-01-10 10:57:37 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-01-10 10:57:37 -0800 |
commit | c0e021cbe7eeab18f28b02668e7889ee01c2d182 (patch) | |
tree | 34fdd62d87fe4b1a42251a6847a2e95ac3fd2d31 /jstests/shellstartparallel.js | |
parent | 7003b4b5b6c3febaa136b1d489a21c32c3d71708 (diff) | |
download | mongo-c0e021cbe7eeab18f28b02668e7889ee01c2d182.tar.gz |
try to fix shellstartparallel failures
Diffstat (limited to 'jstests/shellstartparallel.js')
-rw-r--r-- | jstests/shellstartparallel.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/shellstartparallel.js b/jstests/shellstartparallel.js index 32f0028ec1a..59110296b26 100644 --- a/jstests/shellstartparallel.js +++ b/jstests/shellstartparallel.js @@ -5,13 +5,12 @@ assert.throws(f); // verify that join works db.sps.drop(); -join = startParallelShell("sleep(1000); db.sps.insert({x:1});"); +join = startParallelShell("sleep(1000); db.sps.insert({x:1}); db.getLastError();"); join(); -// print(db.sps.count()); // if it didn't work we might get zero here assert.eq(1, db.sps.count(), "join problem?"); // test with a throw -join = startParallelShell("db.sps.insert({x:1}); throw 'intentionally_uncaught';"); +join = startParallelShell("db.sps.insert({x:1}); db.getLastError(); throw 'intentionally_uncaught';"); join(); assert.eq(2, db.sps.count(), "join2 problem?"); |