summaryrefslogtreecommitdiff
path: root/jstests/core/wildcard_index_hint.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/wildcard_index_hint.js')
-rw-r--r--jstests/core/wildcard_index_hint.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/wildcard_index_hint.js b/jstests/core/wildcard_index_hint.js
index f20e2b238c1..ff481a62712 100644
--- a/jstests/core/wildcard_index_hint.js
+++ b/jstests/core/wildcard_index_hint.js
@@ -73,7 +73,7 @@ assert.commandWorked(coll.createIndex({"c.$**": 1}));
// Hint on path that is not in query argument.
assert.commandFailedWithCode(
db.runCommand({find: coll.getName(), filter: {"a": 1}, hint: {"c.$**": 1}}),
- ErrorCodes.BadValue);
+ ErrorCodes.NoQueryExecutionPlans);
// Hint on a path specified $** index.
assertExpectedIndexAnswersQueryWithHint(