summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/remove9.js
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-03-27 16:15:09 -0400
committerMathias Stearn <mathias@10gen.com>2014-03-27 17:35:16 -0400
commitd0a1e84ab2fa1b6aa699721b5cb9a4f8d0bf3692 (patch)
tree7a1ffc91cb6cb176c1e367ea7641ab05032c862c /jstests/noPassthroughWithMongod/remove9.js
parent719134aa7985c0a697f199fc78e323d04e3a65ad (diff)
downloadmongo-d0a1e84ab2fa1b6aa699721b5cb9a4f8d0bf3692.tar.gz
SERVER-13391 Rename slowNightly -> noPassthroughWithMongod and slowWeekly -> noPassthrough
This better represents their purpose and the difference between them.
Diffstat (limited to 'jstests/noPassthroughWithMongod/remove9.js')
-rw-r--r--jstests/noPassthroughWithMongod/remove9.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/remove9.js b/jstests/noPassthroughWithMongod/remove9.js
new file mode 100644
index 00000000000..e7dfe9bfff1
--- /dev/null
+++ b/jstests/noPassthroughWithMongod/remove9.js
@@ -0,0 +1,12 @@
+t = db.jstests_remove9;
+t.drop();
+
+js = "while( 1 ) { for( i = 0; i < 10000; ++i ) { db.jstests_remove9.save( {i:i} ); } db.jstests_remove9.remove( {i: {$gte:0} } ); }";
+pid = startMongoProgramNoConnect( "mongo" , "--eval" , js , db ? db.getMongo().host : null );
+
+for( var i = 0; i < 10000; ++i ) {
+ t.remove( {i:Random.randInt( 10000 )} );
+ assert.automsg( "!db.getLastError()" );
+}
+
+stopMongoProgramByPid( pid ); \ No newline at end of file