summaryrefslogtreecommitdiff
path: root/jstests/sharding/auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/auth.js')
-rw-r--r--jstests/sharding/auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/auth.js b/jstests/sharding/auth.js
index f9bcb881d36..230e2429467 100644
--- a/jstests/sharding/auth.js
+++ b/jstests/sharding/auth.js
@@ -80,7 +80,7 @@ logout(adminUser);
var result = s.getDB("admin").runCommand({addShard : shardName});
printjson(result);
-assert.eq(result.code, 13);
+assert.eq(result.errmsg, "unauthorized");
login(adminUser);