From e082196ce0e8fd7addf8f44e533e6d621230b189 Mon Sep 17 00:00:00 2001 From: XueruiFa Date: Tue, 15 Jun 2021 19:15:55 +0000 Subject: SERVER-57720: Wait for newlyAdded removal in reconfig_for_psa_set_shell.js --- jstests/noPassthrough/reconfig_for_psa_set_shell.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = -- cgit v1.2.1