diff options
author | Antonin Kral <a.kral@bobek.cz> | 2010-09-24 19:01:03 +0200 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2010-09-24 19:01:03 +0200 |
commit | 0ad0c09511a04ebe837f2acb859d47f2aa4e038a (patch) | |
tree | 109babcb556f6c5884b77853120717f0617c7a1e /jstests/disk/diskfull.js | |
parent | 03e58f81cad8dd4cfcd1530f327116f0cff6ceb3 (diff) | |
download | mongodb-0ad0c09511a04ebe837f2acb859d47f2aa4e038a.tar.gz |
Imported Upstream version 1.6.3
Diffstat (limited to 'jstests/disk/diskfull.js')
-rw-r--r-- | jstests/disk/diskfull.js | 5 |
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() ); |