summaryrefslogtreecommitdiff
path: root/jstests/replsets/atlas_initialsync_workflows.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/atlas_initialsync_workflows.js')
-rw-r--r--jstests/replsets/atlas_initialsync_workflows.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/atlas_initialsync_workflows.js b/jstests/replsets/atlas_initialsync_workflows.js
index afecb7ee47e..1d960b2ccef 100644
--- a/jstests/replsets/atlas_initialsync_workflows.js
+++ b/jstests/replsets/atlas_initialsync_workflows.js
@@ -96,6 +96,9 @@ function testAddWithInitialSync(secondariesDown) {
}
function testReplaceWithInitialSync(secondariesDown) {
+ // Wait for existing reconfigs to complete.
+ rst.waitForAllNewlyAddedRemovals();
+
const nodeToBeReplaced = rst.getSecondaries()[2];
secondariesDown = secondariesDown || 0;
const useForce = secondariesDown > 1;