diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-03-26 19:42:16 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-03-26 19:42:16 -0400 |
commit | bf20c28c9b5051d190def49860026813badae988 (patch) | |
tree | 29543be573158dbad47b32aa31f8d66c4cfed518 /jstests/disk/repair5.js | |
parent | fc6d869bd26c0e569e112b8331ac75c1c14dace9 (diff) | |
download | mongo-bf20c28c9b5051d190def49860026813badae988.tar.gz |
try to make test a little more reliable
Diffstat (limited to 'jstests/disk/repair5.js')
-rw-r--r-- | jstests/disk/repair5.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/disk/repair5.js b/jstests/disk/repair5.js index ce2e940a641..314739e330a 100644 --- a/jstests/disk/repair5.js +++ b/jstests/disk/repair5.js @@ -21,7 +21,7 @@ function killRepair() { while( 1 ) { p = db.currentOp().inprog; for( var i in p ) { - var o = p[ i ]; + var o = p[ i ]; printjson( o ); // Find the active 'repairDatabase' op and kill it. if ( o.active && o.query.repairDatabase ) { @@ -34,6 +34,8 @@ function killRepair() { s = startParallelShell( killRepair.toString() + "; killRepair();" ); +sleep(100); // make sure shell is actually running, lame + // Repair should fail due to killOp. assert.commandFailed( db.runCommand( {repairDatabase:1, backupOriginalFiles:true} ) ); |