summaryrefslogtreecommitdiff
path: root/jstests/sharding/auth_sharding_cmd_metadata.js
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-06-20 10:55:43 -0400
committerMathias Stearn <mathias@10gen.com>2017-06-28 11:57:04 -0400
commite3fe73454a6e558fc61c19456510d5f93152721d (patch)
tree811f7d2d61f8512fe1bd653e278a06767aa677e8 /jstests/sharding/auth_sharding_cmd_metadata.js
parente777062a8a4a6084472039e8d1d4008f42f777fb (diff)
downloadmongo-e3fe73454a6e558fc61c19456510d5f93152721d.tar.gz
SERVER-29319 Delete DBClient::runCommandWithMetadata{,AndTarget}
Diffstat (limited to 'jstests/sharding/auth_sharding_cmd_metadata.js')
-rw-r--r--jstests/sharding/auth_sharding_cmd_metadata.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/auth_sharding_cmd_metadata.js b/jstests/sharding/auth_sharding_cmd_metadata.js
index d04cfb204c7..73dea60d1a7 100644
--- a/jstests/sharding/auth_sharding_cmd_metadata.js
+++ b/jstests/sharding/auth_sharding_cmd_metadata.js
@@ -21,7 +21,7 @@
var maxSecs = Math.pow(2, 32) - 1;
var metadata = {$configServerState: {opTime: {ts: Timestamp(maxSecs, 0), t: maxSecs}}};
- var res = st.d0.getDB('test').runCommandWithMetadata("ping", {ping: 1}, metadata);
+ var res = st.d0.getDB('test').runCommandWithMetadata({ping: 1}, metadata);
assert.commandFailedWithCode(res.commandReply, ErrorCodes.Unauthorized);
@@ -33,7 +33,7 @@
st.d0.getDB('admin').createUser({user: 'internal', pwd: 'pwd', roles: ['__system']});
st.d0.getDB('admin').auth('internal', 'pwd');
- res = st.d0.getDB('test').runCommandWithMetadata("ping", {ping: 1}, metadata);
+ res = st.d0.getDB('test').runCommandWithMetadata({ping: 1}, metadata);
assert.commandWorked(res.commandReply);
status = st.d0.getDB('test').runCommand({serverStatus: 1});