summaryrefslogtreecommitdiff
path: root/jstests/core/minmax.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/minmax.js')
-rw-r--r--jstests/core/minmax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/minmax.js b/jstests/core/minmax.js
index 1a32fe9d059..14f4ed0ec2c 100644
--- a/jstests/core/minmax.js
+++ b/jstests/core/minmax.js
@@ -70,12 +70,12 @@ assert.eq(error.code, 51176, error);
error = assert.throws(function() {
coll.find().min({a: 1}).hint({$natural: 1}).toArray();
});
-assert.eq(error.code, ErrorCodes.BadValue, error);
+assert.eq(error.code, ErrorCodes.NoQueryExecutionPlans, error);
error = assert.throws(function() {
coll.find().max({a: 1}).hint({$natural: 1}).toArray();
});
-assert.eq(error.code, ErrorCodes.BadValue);
+assert.eq(error.code, ErrorCodes.NoQueryExecutionPlans);
coll.drop();
assert.commandWorked(coll.ensureIndex({a: 1}));