summaryrefslogtreecommitdiff
path: root/jstests/sharding/aggregation_currentop.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/aggregation_currentop.js')
-rw-r--r--jstests/sharding/aggregation_currentop.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/sharding/aggregation_currentop.js b/jstests/sharding/aggregation_currentop.js
index 2cae3bf11c2..52fc160c22f 100644
--- a/jstests/sharding/aggregation_currentop.js
+++ b/jstests/sharding/aggregation_currentop.js
@@ -541,6 +541,9 @@
// Test that the allUsers parameter is ignored when authentication is disabled.
restartReplSet(shardRS, {shardsvr: null, keyFile: null});
+ // Explicitly set the keyFile to null. If ReplSetTest#stopSet sees a keyFile property, it
+ // attempts to auth before dbhash checks.
+ shardRS.keyFile = null;
// Ensure that there is at least one other connection present.
const otherConn = new Mongo(shardConn.host);
@@ -623,4 +626,5 @@
assert.commandWorked(shardAdminDB.killOp(op.opid));
awaitShell();
+ st.stop();
})();