summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2016-10-04 18:05:56 -0400
committerRobert Guo <robert.guo@10gen.com>2016-10-27 11:33:40 -0400
commit5b93d767f48469ac7a9212b2013f8349a30e1f70 (patch)
treebf29a27047e66d9d195f830f06903d5000de7881 /jstests/auth
parent41020aedab4356d99ec012a978c642c37d4fc524 (diff)
downloadmongo-5b93d767f48469ac7a9212b2013f8349a30e1f70.tar.gz
SERVER-21089 fix assert.throw/doesNotThrow() argument validation
SERVER-21087 prevent use of "this" in the function passed to assert.throw/doesNotThrow()
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/auth1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js
index c90765ffb02..2d8eae737b4 100644
--- a/jstests/auth/auth1.js
+++ b/jstests/auth/auth1.js
@@ -94,7 +94,7 @@ function runTest(m) {
assert.throws(function() {
return t.group(p);
- }, null, "write reduce didn't fail");
+ }, [], "write reduce didn't fail");
assert.eq(1000, dbRO.jstests_auth_auth1.count(), "C3");
db.getSiblingDB('admin').auth('super', 'super');