summaryrefslogtreecommitdiff
path: root/jstests/core/profile_find.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/profile_find.js')
-rw-r--r--jstests/core/profile_find.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/core/profile_find.js b/jstests/core/profile_find.js
index 5df83c38e77..c9a6d7bed8c 100644
--- a/jstests/core/profile_find.js
+++ b/jstests/core/profile_find.js
@@ -33,6 +33,7 @@
assert.eq(profileObj.docsExamined, 1, tojson(profileObj));
assert.eq(profileObj.nreturned, 1, tojson(profileObj));
assert.eq(profileObj.planSummary, "IXSCAN { a: 1.0 }", tojson(profileObj));
+ assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj));
assert.eq(profileObj.query.filter, {a: 1}, tojson(profileObj));
if (isLegacyReadMode) {
assert.eq(profileObj.query.ntoreturn, -1, tojson(profileObj));
@@ -43,8 +44,6 @@
}
assert.eq(profileObj.cursorExhausted, true, tojson(profileObj));
assert(!profileObj.hasOwnProperty("cursorid"), tojson(profileObj));
- assert.eq("IXSCAN", profileObj.execStats.inputStage.inputStage.stage, tojson(profileObj));
- assert.eq("LIMIT", profileObj.execStats.stage, tojson(profileObj));
assert(profileObj.hasOwnProperty("responseLength"), tojson(profileObj));
assert(profileObj.hasOwnProperty("millis"), tojson(profileObj));
assert(profileObj.hasOwnProperty("numYield"), tojson(profileObj));