summaryrefslogtreecommitdiff
path: root/jstests/drop2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/drop2.js')
-rw-r--r--jstests/drop2.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/jstests/drop2.js b/jstests/drop2.js
index 84b5c92554c..cb629845dd9 100644
--- a/jstests/drop2.js
+++ b/jstests/drop2.js
@@ -26,11 +26,16 @@ function op( drop ) {
return null;
}
-s1 = startParallelShell( "db.jstests_drop2.count( { $where: function() { while( 1 ) { sleep( 1 ); } } } )" );
+s1 = startParallelShell( "print(\"Count thread started\");"
+ + "db.jstests_drop2.count( { $where: function() {"
+ + "while( 1 ) { sleep( 1 ); } } } );"
+ + "print(\"Count thread terminating\");" );
countOp = null;
assert.soon( function() { countOp = op( false ); return countOp; } );
-s2 = startParallelShell( "db.jstests_drop2.drop()" );
+s2 = startParallelShell( "print(\"Drop thread started\");"
+ + "db.jstests_drop2.drop();"
+ + "print(\"Drop thread terminating\")" );
dropOp = null;
assert.soon( function() { dropOp = op( true ); return dropOp; } );