diff options
Diffstat (limited to 'jstests/core/push2.js')
-rw-r--r-- | jstests/core/push2.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/core/push2.js b/jstests/core/push2.js index 5161cc373b6..431e86f596a 100644 --- a/jstests/core/push2.js +++ b/jstests/core/push2.js @@ -2,20 +2,20 @@ t = db.push2; t.drop(); -t.save( { _id : 1 , a : [] } ); +t.save({_id: 1, a: []}); s = new Array(700000).toString(); gotError = null; -for ( x=0; x<100; x++ ){ - print (x + " pushes"); - var res = t.update( {} , { $push : { a : s } } ); +for (x = 0; x < 100; x++) { + print(x + " pushes"); + var res = t.update({}, {$push: {a: s}}); gotError = res.hasWriteError(); - if ( gotError ) + if (gotError) break; } -assert( gotError , "should have gotten error" ); +assert(gotError, "should have gotten error"); t.drop(); |