summaryrefslogtreecommitdiff
path: root/jstests/disk/diskfull.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/disk/diskfull.js')
-rw-r--r--jstests/disk/diskfull.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/disk/diskfull.js b/jstests/disk/diskfull.js
index 8057174..6cbcbb7 100644
--- a/jstests/disk/diskfull.js
+++ b/jstests/disk/diskfull.js
@@ -14,9 +14,10 @@ if ( !doIt ) {
if ( doIt ) {
port = allocatePorts( 1 )[ 0 ];
m = startMongoProgram( "mongod", "--port", port, "--dbpath", "/data/db/diskfulltest", "--nohttpinterface", "--bind_ip", "127.0.0.1" );
- m.getDB( "diskfulltest" ).getCollection( "diskfulltest" ).save( { a: 6 } );
+ c = m.getDB( "diskfulltest" ).getCollection( "diskfulltest" )
+ c.save( { a: 6 } );
assert.soon( function() { return rawMongoProgramOutput().match( /file allocation failure/ ); }, "didn't see 'file allocation failure'" );
- assert.soon( function() { return rawMongoProgramOutput().match( /Caught Assertion in insert , continuing/ ); }, "didn't see 'Caught Assertion...'" );
+ assert.isnull( c.findOne() , "shouldn't exist" );
sleep( 3000 );
m2 = new Mongo( m.host );
printjson( m2.getDBs() );