summaryrefslogtreecommitdiff
path: root/jstests/disk/killall.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/disk/killall.js')
-rw-r--r--jstests/disk/killall.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/disk/killall.js b/jstests/disk/killall.js
index 3be9f530780..a46a3588241 100644
--- a/jstests/disk/killall.js
+++ b/jstests/disk/killall.js
@@ -21,7 +21,8 @@ var mongod = startMongod( "--port", port, "--dbpath", dbpath, "--nohttpinterface
var db = mongod.getDB( "test" );
var collection = db.getCollection( baseName );
-assert.writeOK(collection.insert({}));
+collection.save( {} );
+assert( ! db.getLastError() );
s1 = startParallelShell( "db." + baseName + ".count( { $where: function() { while( 1 ) { ; } } } )", port );
// HACK(schwerin): startParallelShell's return value should allow you to block until the command has