diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-04-02 18:37:06 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-04-13 10:14:12 -0400 |
commit | 1991daaff1a108d98f6e9e7414a16131e244bdd4 (patch) | |
tree | 24051b5af1c645f37d4f3ecea5b5c3d64a75c9ac /jstests/auth/basic_role_auth.js | |
parent | 5cfd95b0eb36c72f1b1b131ff1de76fe05f16cc3 (diff) | |
download | mongo-1991daaff1a108d98f6e9e7414a16131e244bdd4.tar.gz |
SERVER-7775 add currentOp command
Diffstat (limited to 'jstests/auth/basic_role_auth.js')
-rw-r--r-- | jstests/auth/basic_role_auth.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/auth/basic_role_auth.js b/jstests/auth/basic_role_auth.js index 1122951fd25..8b50f70671b 100644 --- a/jstests/auth/basic_role_auth.js +++ b/jstests/auth/basic_role_auth.js @@ -158,9 +158,10 @@ var testOps = function(db, allowedActions) { }); checkErr(allowedActions.hasOwnProperty('currentOp'), function() { + var errorCodeUnauthorized = 13; var res = db.currentOp(); - if (res.err == 'unauthorized') { + if (res.code == errorCodeUnauthorized) { throw Error("unauthorized currentOp"); } }); |