diff options
author | Aaron <aaron@10gen.com> | 2011-08-07 22:38:48 -0700 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-08-07 22:39:33 -0700 |
commit | 00b751f2d0ee0adc10dc7216fdc8e55f1e4cec98 (patch) | |
tree | 0722d2f30207463ff40ebee2e7af810e1ff28838 | |
parent | 4c53a82ac58ed2e5cf268cac60a4ef86be36c7a1 (diff) | |
download | mongo-00b751f2d0ee0adc10dc7216fdc8e55f1e4cec98.tar.gz |
SERVER-1395 allow group more opportunities to yield in test
-rw-r--r-- | jstests/group7.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/group7.js b/jstests/group7.js index 13cafe2a4a8..7461b65b569 100644 --- a/jstests/group7.js +++ b/jstests/group7.js @@ -9,12 +9,12 @@ for( i = 0; i < 3000; ++i ) { } db.getLastError(); -// Iteratively update all a values to a atomically. -p = startParallelShell( 'for( a = 0; a < 100; ++a ) { db.jstests_group7.update( {$atomic:true}, {$set:{a:a}}, false, true ); db.getLastError(); }' ); +// Iteratively update all a values atomically. +p = startParallelShell( 'for( a = 0; a < 300; ++a ) { db.jstests_group7.update( {$atomic:true}, {$set:{a:a}}, false, true ); db.getLastError(); }' ); assert.soon( function() { ret = t.group({key:{a:1},reduce:function(){},initial:{}}); - // Check if group sees more than one a value, indicating that group yielded. + // Check if group sees more than one a value, indicating that it yielded. if ( ret.length > 1 ) { return true; } |