summaryrefslogtreecommitdiff
path: root/jstests/core/push2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/push2.js')
-rw-r--r--jstests/core/push2.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/jstests/core/push2.js b/jstests/core/push2.js
index c8d8e7be64c..10669aa2581 100644
--- a/jstests/core/push2.js
+++ b/jstests/core/push2.js
@@ -1,22 +1,22 @@
(function() {
- t = db.push2;
- t.drop();
+t = db.push2;
+t.drop();
- t.save({_id: 1, a: []});
+t.save({_id: 1, a: []});
- s = new Array(700000).toString();
+s = new Array(700000).toString();
- gotError = null;
+gotError = null;
- for (x = 0; x < 100; x++) {
- print(x + " pushes");
- var res = t.update({}, {$push: {a: s}});
- gotError = res.hasWriteError();
- if (gotError)
- break;
- }
+for (x = 0; x < 100; x++) {
+ print(x + " pushes");
+ var res = t.update({}, {$push: {a: s}});
+ gotError = res.hasWriteError();
+ if (gotError)
+ break;
+}
- assert(gotError, "should have gotten error");
+assert(gotError, "should have gotten error");
- t.drop();
+t.drop();
})();