summaryrefslogtreecommitdiff
path: root/jstests/replsets/auth2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/auth2.js')
-rw-r--r--jstests/replsets/auth2.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/replsets/auth2.js b/jstests/replsets/auth2.js
index 529dd5257c7..c8d8971a735 100644
--- a/jstests/replsets/auth2.js
+++ b/jstests/replsets/auth2.js
@@ -3,6 +3,11 @@
// This test requires users to persist across a restart.
// @tags: [requires_persistence]
+// We turn off gossiping the mongo shell's clusterTime because this test connects to replica sets
+// and sharded clusters as a user other than __system. Attempting to advance the clusterTime while
+// it has been signed with a dummy key results in an authorization error.
+TestData.skipGossipingClusterTime = true;
+
(function() {
var testInvalidAuthStates = function(replSetTest, expectedState) {
print("check that 0 is in recovering");