summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
Diffstat (limited to 'jstests')
-rw-r--r--jstests/covered_index_negative_1.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/covered_index_negative_1.js b/jstests/covered_index_negative_1.js
index 0b2f0adae83..fdd920dbffe 100644
--- a/jstests/covered_index_negative_1.js
+++ b/jstests/covered_index_negative_1.js
@@ -34,18 +34,18 @@ var plan = coll.find({e:99},{e:1, _id:0}).hint({e:1}).explain()
assert.eq(false, plan.indexOnly, "negative.1.4 - indexOnly should be false on a non covered query")
assert.neq(0, plan.nscannedObjects, "negative.1.4 - nscannedObjects should not be 0 for a non covered query")
-// Commenting out negative.1.5 pending fix in SERVER-8650
+// Commenting out negative.1.5 and 1.6 pending fix in SERVER-8650
// // Test projection and $natural sort
// var plan = coll.find({a:{$gt:70}},{a:1, b:1, c:1, _id:0}).sort({$natural:1}).hint({a:1, b:-1, c:1}).explain()
// // indexOnly should be false but is not due to bug https://jira.mongodb.org/browse/SERVER-8561
// assert.eq(true, plan.indexOnly, "negative.1.5 - indexOnly should be false on a non covered query")
// assert.neq(0, plan.nscannedObjects, "negative.1.5 - nscannedObjects should not be 0 for a non covered query")
-// Test sort on non-indexed field
-var plan = coll.find({d:{$lt:1000}},{d:1, _id:0}).sort({c:1}).hint({d:1}).explain()
-//indexOnly should be false but is not due to bug https://jira.mongodb.org/browse/SERVER-8562
-assert.eq(true, plan.indexOnly, "negative.1.6 - indexOnly should be false on a non covered query")
-assert.neq(0, plan.nscannedObjects, "negative.1.6 - nscannedObjects should not be 0 for a non covered query")
+// // Test sort on non-indexed field
+// var plan = coll.find({d:{$lt:1000}},{d:1, _id:0}).sort({c:1}).hint({d:1}).explain()
+// //indexOnly should be false but is not due to bug https://jira.mongodb.org/browse/SERVER-8562
+// assert.eq(true, plan.indexOnly, "negative.1.6 - indexOnly should be false on a non covered query")
+// assert.neq(0, plan.nscannedObjects, "negative.1.6 - nscannedObjects should not be 0 for a non covered query")
// Test query on non-indexed field
var plan = coll.find({d:{$lt:1000}},{a:1, b:1, c:1, _id:0}).hint({a:1, b:-1, c:1}).explain()