diff options
author | wenqinYe <wenqin908@gmail.com> | 2023-02-17 21:12:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-18 04:35:22 +0000 |
commit | b59e3e8859a24df9050ea08efab42aa44ef74547 (patch) | |
tree | dea29b480d082586191fad1e394a76221d8f3fae /jstests/multiVersion | |
parent | 13f0147594c6783bbd3dbb3ff9ccd7da670a0555 (diff) | |
download | mongo-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.js | 2 |
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(); |