diff options
author | Benety Goh <benety@mongodb.com> | 2015-01-27 14:55:02 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2015-01-27 17:28:00 -0500 |
commit | 48c92cdcf0847199b283ba9afbdd721a324eb73f (patch) | |
tree | 3b90fe93d7e4b18a975a303bfd8690d375bff0d1 /jstests | |
parent | a289b4ae72fadd951fb548efd0563c1ab7a95180 (diff) | |
download | mongo-48c92cdcf0847199b283ba9afbdd721a324eb73f.tar.gz |
SERVER-17077 stop running evalc.js after 2 minutes
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/evalc.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/evalc.js b/jstests/core/evalc.js index 0320ecd5133..8b1abe12cf2 100644 --- a/jstests/core/evalc.js +++ b/jstests/core/evalc.js @@ -15,11 +15,11 @@ assert.eq( 0 , t2.count() , "X1" ) s = startParallelShell( "print( 'starting forked:' + Date() ); for ( i=0; i<50000; i++ ){ db.currentOp(); } print( 'ending forked:' + Date() ); db.evalc_done.insert( { x : 1 } ); " ) print( "starting eval: " + Date() ) -while ( true ) { +assert.soon(function() { db.eval( "db.jstests_evalc.count( {i:10} );" ); - if ( t2.count() > 0 ) - break; -} + return t2.count() > 0; +}, 'parallel shell failed to update ' + t2.getFullName(), 120000, 10); + print( "end eval: " + Date() ) s(); |