summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2020-06-16 00:26:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-16 20:27:42 +0000
commitbfd83a5acc4074445371ada1e7fa703372a29661 (patch)
tree183fc53391deabd935920acfaf7b7037def37d83
parentc7752f1b5852d2d5acbf36aea26dd07819398343 (diff)
downloadmongo-bfd83a5acc4074445371ada1e7fa703372a29661.tar.gz
SERVER-48655 Ensure all nodes are rolled over in test
-rw-r--r--jstests/sslSpecial/x509_cluster_auth_rollover.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/sslSpecial/x509_cluster_auth_rollover.js b/jstests/sslSpecial/x509_cluster_auth_rollover.js
index 404ee8e0cca..8aa50d50902 100644
--- a/jstests/sslSpecial/x509_cluster_auth_rollover.js
+++ b/jstests/sslSpecial/x509_cluster_auth_rollover.js
@@ -50,12 +50,10 @@ const rolloverConfig = function(newConfig) {
assert(newNode.getDB("admin").auth("root", "root"));
};
- rst.getSecondaries().forEach(function(secondary) {
- restart(secondary);
+ rst.nodes.forEach(function(node) {
+ restart(node);
});
- restart(rst.getPrimary());
-
assert.soon(() => {
let primary = rst.getPrimary();
assert.commandWorked(primary.getDB("admin").runCommand({isMaster: 1}));