diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-08-04 15:09:53 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-08-04 15:10:08 -0400 |
commit | ca53a39715435935a4902c9fc3419f273a199b54 (patch) | |
tree | 9bb59de6853da38ee4c556eb0439c59343c51127 /jstests/dur | |
parent | 5716363c93f2483ad467fa8c4ad02c616b964a16 (diff) | |
download | mongo-ca53a39715435935a4902c9fc3419f273a199b54.tar.gz |
update test
Diffstat (limited to 'jstests/dur')
-rw-r--r-- | jstests/dur/diskfull.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/jstests/dur/diskfull.js b/jstests/dur/diskfull.js index 4d3e4ccfd7b..c123ea1541e 100644 --- a/jstests/dur/diskfull.js +++ b/jstests/dur/diskfull.js @@ -56,7 +56,9 @@ function work() { d.foo.insert( { _id:i, b:big } ); } - d.getLastError(); + gle = d.getLastError(); + if ( gle ) + throw gle; } catch ( e ) { print( e ); raise( e ); @@ -86,9 +88,8 @@ function runFirstMongodAndFillDisk() { conn = startMongodNoReset("--port", 30001, "--dbpath", startPath, "--dur", "--smallfiles", "--durOptions", 8, "--noprealloc"); assert.throws( work, null, "no exception thrown when exceeding disk capacity" ); - waitMongoProgramOnPort( 30001 ); - - // the above wait doesn't work on windows + stopMongod( 30001 ); + sleep(5000); } |