diff options
Diffstat (limited to 'jstests/core/wildcard_index_validindex.js')
-rw-r--r-- | jstests/core/wildcard_index_validindex.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/wildcard_index_validindex.js b/jstests/core/wildcard_index_validindex.js index f647bbcc969..224ce19fe11 100644 --- a/jstests/core/wildcard_index_validindex.js +++ b/jstests/core/wildcard_index_validindex.js @@ -106,11 +106,11 @@ assert.commandFailedWithCode(coll.createIndex({"$**": "hello"}), ErrorCodes.Cann // Cannot create an wildcard index with mixed inclusion exclusion. assert.commandFailedWithCode( - createIndexHelper({"$**": 1}, {name: kIndexName, wildcardProjection: {a: 1, b: 0}}), 40178); + createIndexHelper({"$**": 1}, {name: kIndexName, wildcardProjection: {a: 1, b: 0}}), 31254); // Cannot create an wildcard index with computed fields. assert.commandFailedWithCode( createIndexHelper({"$**": 1}, {name: kIndexName, wildcardProjection: {a: 1, b: "string"}}), - ErrorCodes.FailedToParse); + 51271); // Cannot create an wildcard index with an empty projection. assert.commandFailedWithCode( createIndexHelper({"$**": 1}, {name: kIndexName, wildcardProjection: {}}), |