diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-18 14:42:21 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-08-18 14:42:21 -0400 |
commit | 44d70c63272476eaac5927249624058f4248b220 (patch) | |
tree | e5ce2a3f6d7d877c144070af6a1eab62881af115 /jstests/disk | |
parent | 62c81c93caf111ebbdd8d6dc4930216be71b0b19 (diff) | |
download | mongo-44d70c63272476eaac5927249624058f4248b220.tar.gz |
fix test
Diffstat (limited to 'jstests/disk')
-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 80571747622..6cbcbb78f27 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() ); |