summaryrefslogtreecommitdiff
path: root/jstests/core/index_arr2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/index_arr2.js')
-rw-r--r--jstests/core/index_arr2.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/jstests/core/index_arr2.js b/jstests/core/index_arr2.js
index 952be73ff13..a7e541add09 100644
--- a/jstests/core/index_arr2.js
+++ b/jstests/core/index_arr2.js
@@ -7,10 +7,7 @@ function test(withIndex) {
t.drop();
// insert a bunch of items to force queries to use the index.
- newObject = {
- _id: 1,
- a: [{b: {c: 1}}]
- };
+ newObject = {_id: 1, a: [{b: {c: 1}}]};
now = (new Date()).getTime() / 1000;
for (created = now - NUM; created <= now; created++) {
@@ -20,9 +17,7 @@ function test(withIndex) {
}
// change the last M items.
- query = {
- 'created': {'$gte': now - M}
- };
+ query = {'created': {'$gte': now - M}};
Z = t.find(query).count();