summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2011-08-07 22:38:48 -0700
committerAaron <aaron@10gen.com>2011-08-07 22:39:33 -0700
commit00b751f2d0ee0adc10dc7216fdc8e55f1e4cec98 (patch)
tree0722d2f30207463ff40ebee2e7af810e1ff28838
parent4c53a82ac58ed2e5cf268cac60a4ef86be36c7a1 (diff)
downloadmongo-00b751f2d0ee0adc10dc7216fdc8e55f1e4cec98.tar.gz
SERVER-1395 allow group more opportunities to yield in test
-rw-r--r--jstests/group7.js6
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;
}