summaryrefslogtreecommitdiff
path: root/jstests/drop2.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-01-15 16:12:27 -0500
committerSpencer T Brody <spencer@10gen.com>2013-01-15 16:27:12 -0500
commita34cee844d3f61c6bd9e9db053cbd8aade9fb251 (patch)
tree1af39e5f55596fdbf46d8075f9faacbae9b5f910 /jstests/drop2.js
parentecaa87e0f70009d635353e7197a32e3af46450ae (diff)
downloadmongo-a34cee844d3f61c6bd9e9db053cbd8aade9fb251.tar.gz
SERVER-4237 Add logging to jstests/drop2.js to help investigate auth failure on buildbot
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; } );