summaryrefslogtreecommitdiff
path: root/jstests/replsets/auth1.js
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2018-05-25 12:57:13 -0400
committerLouis Williams <louis.williams@mongodb.com>2018-05-25 12:57:13 -0400
commit7d0ea48dc8522f41e93b86d9c8f77c64b623ba60 (patch)
tree50273fdffe5a6ce820292182af98e609c57f45a9 /jstests/replsets/auth1.js
parentb322ee9200172276b8d4935c623728129d62c3ef (diff)
downloadmongo-7d0ea48dc8522f41e93b86d9c8f77c64b623ba60.tar.gz
Revert "SERVER-34653 don't parse if early auth-checks can reject."
This reverts commit f2e762dc80e63fa47bd4c1d48e05f628464b0f54.
Diffstat (limited to 'jstests/replsets/auth1.js')
-rw-r--r--jstests/replsets/auth1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/auth1.js b/jstests/replsets/auth1.js
index 81d3ddca816..f784c366cb4 100644
--- a/jstests/replsets/auth1.js
+++ b/jstests/replsets/auth1.js
@@ -93,7 +93,7 @@ load("jstests/replsets/rslib.js");
"find did not throw, returned: " + tojson(r))
.toString();
printjson(error);
- assert.gt(error.indexOf("command find requires authentication"), -1, "error was non-auth");
+ assert.gt(error.indexOf("not authorized"), -1, "error was non-auth");
}
doQueryOn(slave);