diff options
author | Aaron <aaron@10gen.com> | 2011-12-10 09:18:30 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-12-10 09:18:30 -0800 |
commit | 3f7c567c693c6d307ae55654881654655a0a5ec7 (patch) | |
tree | dc90697d6e8578ebf773977337af9117a26feb05 /jstests/currentop.js | |
parent | 9af87f480aaea4a240fa47be3ae4163b7c936a25 (diff) | |
download | mongo-3f7c567c693c6d307ae55654881654655a0a5ec7.tar.gz |
make currentop test more robust
Diffstat (limited to 'jstests/currentop.js')
-rw-r--r-- | jstests/currentop.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/currentop.js b/jstests/currentop.js index 6c0868ec53d..5b706d5bc4d 100644 --- a/jstests/currentop.js +++ b/jstests/currentop.js @@ -5,6 +5,8 @@ t.drop(); for(i=0;i<100;i++) { t.save({ "num": i }); } +// Make sure data is written before we start reading it in parallel shells. +db.getLastError(); function ops(q) { return db.currentOp(q).inprog; |