diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-03-22 12:08:21 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-04-06 18:19:21 -0400 |
commit | 6ccb82c987a47995fd7d8019d7fd4d1e557478b4 (patch) | |
tree | 2542816a69e9faaaff840754b42f0229dc905ccd /jstests/auth/show_log_auth.js | |
parent | 7baac52f05a3e0cbdb7168e51836f507eda99dff (diff) | |
download | mongo-6ccb82c987a47995fd7d8019d7fd4d1e557478b4.tar.gz |
SERVER-17450 Standardize on a single way to start mongod in tests
Diffstat (limited to 'jstests/auth/show_log_auth.js')
-rw-r--r-- | jstests/auth/show_log_auth.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/auth/show_log_auth.js b/jstests/auth/show_log_auth.js index dfc5c736714..1620ab48d37 100644 --- a/jstests/auth/show_log_auth.js +++ b/jstests/auth/show_log_auth.js @@ -1,9 +1,8 @@ // test that "show log dbname" and "show logs" have good err messages when unauthorized -var port = allocatePorts( 1 )[ 0 ]; var baseName = "jstests_show_log_auth"; -var m = startMongod( "--auth", "--port", port, "--dbpath", MongoRunner.dataPath + baseName, "--nohttpinterface", "--bind_ip", "127.0.0.1" , "--nojournal" , "--smallfiles" ); +var m = MongoRunner.runMongod({auth: "", bind_ip: "127.0.0.1", nojournal: "", smallfiles: ""}); var db = m.getDB( "admin" ); db.createUser({user: "admin" , pwd: "pass", roles: jsTest.adminUserRoles}); |