diff options
author | XueruiFa <xuerui.fa@mongodb.com> | 2021-06-15 19:15:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-16 14:34:30 +0000 |
commit | e082196ce0e8fd7addf8f44e533e6d621230b189 (patch) | |
tree | f47a111f640a56d575fdd79495cec1c769800696 | |
parent | 8ef4580520429754f85003cdb9d126aede402dbd (diff) | |
download | mongo-e082196ce0e8fd7addf8f44e533e6d621230b189.tar.gz |
SERVER-57720: Wait for newlyAdded removal in reconfig_for_psa_set_shell.js
-rw-r--r-- | jstests/noPassthrough/reconfig_for_psa_set_shell.js | 3 |
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 = |