summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/auth/sasl_mechanism_discovery.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/auth/sasl_mechanism_discovery.js b/jstests/auth/sasl_mechanism_discovery.js
index 0dfcb7a36bc..65f930dbce9 100644
--- a/jstests/auth/sasl_mechanism_discovery.js
+++ b/jstests/auth/sasl_mechanism_discovery.js
@@ -35,9 +35,8 @@
// Check that names with compatibility equivalence collide.
assert.commandWorked(db.runCommand(
{createUser: IXchar, pwd: "pwd", roles: [], mechanisms: ["SCRAM-SHA-1"]}));
- assert.commandFailed(db.runCommand({isMaster: 1, saslSupportedMechs: IXuserid}),
- ErrorCodes.BadValue,
- "Two users exist with names exhibiting compatibility equivalence");
+ assert.commandFailedWithCode(db.runCommand({isMaster: 1, saslSupportedMechs: IXuserid}),
+ ErrorCodes.BadValue);
}
// Test standalone.