summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2021-08-05 16:18:33 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-05 20:39:47 +0000
commit6edcd36b5355478c0e324c7d56c5e2428552906d (patch)
treeffceee4321903e623f081ae030e33a5e5e06cb34 /jstests
parent3466bed8f77245b0ebe5af82cef4ef9db0926032 (diff)
downloadmongo-6edcd36b5355478c0e324c7d56c5e2428552906d.tar.gz
SERVER-59056 Fix primary check in `timeseries_retryable_write_downgrade.js`
Diffstat (limited to 'jstests')
-rw-r--r--jstests/multiVersion/timeseries_retryable_write_downgrade.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/multiVersion/timeseries_retryable_write_downgrade.js b/jstests/multiVersion/timeseries_retryable_write_downgrade.js
index 458d73c2283..15e893a1418 100644
--- a/jstests/multiVersion/timeseries_retryable_write_downgrade.js
+++ b/jstests/multiVersion/timeseries_retryable_write_downgrade.js
@@ -49,7 +49,7 @@ assert.eq(configTransactions.find().toArray().length, 0);
replTest.upgradeSet({binVersion: 'last-lts'});
replTest.awaitNodesAgreeOnPrimary();
-if (replTest.getPrimary() !== primary) {
+if (replTest.getPrimary().port !== primary.port) {
replTest.stepUp(replTest.getSecondary());
}