diff options
author | Katherine Wu <katherine.wu@mongodb.com> | 2021-04-09 10:22:04 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-07 18:04:42 +0000 |
commit | bce8de3a989d7b5aeb1c1145099298bd81a5c9bb (patch) | |
tree | cb5c45d4f3c8bcb0bb1746fc8bf681771c933465 /jstests/auth | |
parent | d8515fe5703df61776204777ba4d5336459ff8b0 (diff) | |
download | mongo-bce8de3a989d7b5aeb1c1145099298bd81a5c9bb.tar.gz |
SERVER-47603 Rewrite db.currentOp() shell helper in terms of $currentOp aggregation stage
Diffstat (limited to 'jstests/auth')
-rw-r--r-- | jstests/auth/auth3.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/auth/auth3.js b/jstests/auth/auth3.js index 29f61f1c7ee..490c73c93a3 100644 --- a/jstests/auth/auth3.js +++ b/jstests/auth/auth3.js @@ -2,16 +2,16 @@ 'use strict'; -var conn = MongoRunner.runMongod({auth: ""}); +const conn = MongoRunner.runMongod({auth: ""}); -var admin = conn.getDB("admin"); -var errorCodeUnauthorized = 13; +const admin = conn.getDB("admin"); +const errorCodeUnauthorized = 13; admin.createUser({user: "foo", pwd: "bar", roles: jsTest.adminUserRoles}); print("make sure curop, killop, and unlock fail"); -var x = admin.currentOp(); +let x = admin.currentOp(); assert(!("inprog" in x), tojson(x)); assert.eq(x.code, errorCodeUnauthorized, tojson(x)); |