diff options
author | Silvia Surroca <silvia.surroca@mongodb.com> | 2023-04-13 14:20:20 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-13 14:37:39 +0000 |
commit | 632fcfeda31845f573fd917c32c55cc9b9cae180 (patch) | |
tree | 04b42dbb4ad687c98607a6579dc15f75ddab8235 | |
parent | a1322fe27c4fc1dc52cf03ce24388ee794cff3e6 (diff) | |
download | mongo-632fcfeda31845f573fd917c32c55cc9b9cae180.tar.gz |
SERVER-76047 Fix prepare_transaction_then_migrate.js test on v4.4
-rw-r--r-- | jstests/sharding/prepare_transaction_then_migrate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/prepare_transaction_then_migrate.js b/jstests/sharding/prepare_transaction_then_migrate.js index f453125339c..239be395d80 100644 --- a/jstests/sharding/prepare_transaction_then_migrate.js +++ b/jstests/sharding/prepare_transaction_then_migrate.js @@ -96,7 +96,7 @@ let runTest = function(testMode) { // Wait for the config server to see the new primary. // TODO SERVER-74177 Remove this once retry on NotWritablePrimary is implemented. - st.forEachConfigServer((conn) => { + st.configRS.nodes.forEach((conn) => { awaitRSClientHosts(conn, st.rs0.getPrimary(), {ok: true, ismaster: true}); }); } else if (testMode == TestMode.kWithRestart) { |