diff options
author | Spencer T Brody <spencer@10gen.com> | 2014-01-08 11:49:27 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2014-01-08 11:49:27 -0500 |
commit | 8dfa08c32ed52628cd7960b0c96fcc2a1ee34839 (patch) | |
tree | e70bbe76cdeb78637a6868315cb53d2f2a6fb6f7 /jstests/sharding/authCommands.js | |
parent | 692222cd457c6d370647664627d248aebe05b8ab (diff) | |
download | mongo-8dfa08c32ed52628cd7960b0c96fcc2a1ee34839.tar.gz |
Fix sharding/authCommands.js test by not asking for a numeric write concern when doing a write to config servers
Diffstat (limited to 'jstests/sharding/authCommands.js')
-rw-r--r-- | jstests/sharding/authCommands.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/jstests/sharding/authCommands.js b/jstests/sharding/authCommands.js index 2027937ee53..80c18400f46 100644 --- a/jstests/sharding/authCommands.js +++ b/jstests/sharding/authCommands.js @@ -24,14 +24,11 @@ var rwUser = 'rwUser'; var roUser = 'roUser'; var password = 'password'; -adminDB.createUser({user: rwUser, pwd: password, roles: jsTest.adminUserRoles}, - {w: st.rs0.numNodes, wtimeout: 30000} ); +adminDB.createUser({user: rwUser, pwd: password, roles: jsTest.adminUserRoles}); assert( adminDB.auth( rwUser, password ) ); -testDB.createUser({user: rwUser, pwd: password, roles: jsTest.basicUserRoles}, - {w: st.rs0.numNodes, wtimeout: 30000} ); -testDB.createUser({user: roUser, pwd: password, roles: jsTest.readOnlyUserRoles}, - {w: st.rs0.numNodes, wtimeout: 30000} ); +testDB.createUser({user: rwUser, pwd: password, roles: jsTest.basicUserRoles}); +testDB.createUser({user: roUser, pwd: password, roles: jsTest.readOnlyUserRoles}); authenticatedConn = new Mongo( mongos.host ); authenticatedConn.getDB( 'admin' ).auth( rwUser, password ); |