summaryrefslogtreecommitdiff
path: root/jstests/multiVersion
diff options
context:
space:
mode:
authorwenqinYe <wenqin908@gmail.com>2023-02-17 21:12:22 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-18 04:35:22 +0000
commitb59e3e8859a24df9050ea08efab42aa44ef74547 (patch)
treedea29b480d082586191fad1e394a76221d8f3fae /jstests/multiVersion
parent13f0147594c6783bbd3dbb3ff9ccd7da670a0555 (diff)
downloadmongo-b59e3e8859a24df9050ea08efab42aa44ef74547.tar.gz
SERVER-74159: Update test to use transitionToCatalogShard command
Diffstat (limited to 'jstests/multiVersion')
-rw-r--r--jstests/multiVersion/targetedTestsLastLtsFeatures/set_fcv_prevent_invalid_downgrade_with_catalog_shard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/multiVersion/targetedTestsLastLtsFeatures/set_fcv_prevent_invalid_downgrade_with_catalog_shard.js b/jstests/multiVersion/targetedTestsLastLtsFeatures/set_fcv_prevent_invalid_downgrade_with_catalog_shard.js
index 18cffdc6758..f53d6522cff 100644
--- a/jstests/multiVersion/targetedTestsLastLtsFeatures/set_fcv_prevent_invalid_downgrade_with_catalog_shard.js
+++ b/jstests/multiVersion/targetedTestsLastLtsFeatures/set_fcv_prevent_invalid_downgrade_with_catalog_shard.js
@@ -34,7 +34,7 @@ mongosAdminDB = st.s.getDB("admin");
assert.commandWorked(mongosAdminDB.runCommand({setFeatureCompatibilityVersion: lastLTSFCV}));
assert.commandFailed(
- mongosAdminDB.runCommand({addShard: st.configRS.getURL(), name: kCatalogShardId}),
+ mongosAdminDB.runCommand({transitionToCatalogShard: 1}),
"Cannot add a shard with catalogShard as its name if the catalog shard feature flag is not enabled");
st.stop();