summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/noPassthrough/reconfig_for_psa_set_shell.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/reconfig_for_psa_set_shell.js b/jstests/noPassthrough/reconfig_for_psa_set_shell.js
index 3ba5460a428..1079d6eb44b 100644
--- a/jstests/noPassthrough/reconfig_for_psa_set_shell.js
+++ b/jstests/noPassthrough/reconfig_for_psa_set_shell.js
@@ -45,7 +45,8 @@ const runReconfigForPSASet = (memberIndex, config, shouldSucceed, endPriority =
if (shouldSucceed) {
assert.eq(0, result, 'expected reconfigToPSASet to succeed, but it failed');
- // Wait for the new config to be committed.
+ // Wait for all 'newlyAdded' fields to be removed and for the new config to be committed.
+ rst.waitForAllNewlyAddedRemovals();
assert.soonNoExcept(() => isConfigCommitted(primary));
const replSetGetConfig =