diff options
author | mathisbessamdb <mathis.bessa@mongodb.com> | 2022-11-18 23:04:18 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-18 23:58:48 +0000 |
commit | 4fd85ab061c1b31af3d641d743420d66ce25cf5c (patch) | |
tree | ac715e5637d6aee1523be2fdc8bf185058910c60 /jstests/serverless/serverless_reject_multiple_ops_migration_donor_retry.js | |
parent | 0d9b3912cee0897af35ec529a687d886f2b5a06d (diff) | |
download | mongo-4fd85ab061c1b31af3d641d743420d66ce25cf5c.tar.gz |
SERVER-71179 Update the ShardSplitCommands to use the TenantId class
Diffstat (limited to 'jstests/serverless/serverless_reject_multiple_ops_migration_donor_retry.js')
-rw-r--r-- | jstests/serverless/serverless_reject_multiple_ops_migration_donor_retry.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/serverless/serverless_reject_multiple_ops_migration_donor_retry.js b/jstests/serverless/serverless_reject_multiple_ops_migration_donor_retry.js index 0c2ec04d42f..229ac0b16f7 100644 --- a/jstests/serverless/serverless_reject_multiple_ops_migration_donor_retry.js +++ b/jstests/serverless/serverless_reject_multiple_ops_migration_donor_retry.js @@ -15,7 +15,7 @@ function retryMigrationAfterSplitCompletes(protocol) { // Test that we cannot start a migration while a shard split is in progress. const recipientTagName = "recipientTag"; const recipientSetName = "recipient"; - const tenantIds = ["tenant1", "tenant2"]; + const tenantIds = [ObjectId(), ObjectId()]; const splitMigrationId = UUID(); const firstTenantMigrationId = UUID(); const secondTenantMigrationId = UUID(); @@ -45,7 +45,7 @@ function retryMigrationAfterSplitCompletes(protocol) { protocol, }; if (protocol != "shard merge") { - firstMigrationOpts["tenantId"] = tenantIds[0]; + firstMigrationOpts["tenantId"] = tenantIds[0].str; } jsTestLog("Starting tenant migration"); assert.commandFailedWithCode(test.startMigration(firstMigrationOpts), @@ -71,7 +71,7 @@ function retryMigrationAfterSplitCompletes(protocol) { protocol, }; if (protocol != "shard merge") { - secondMigrationOpts["tenantId"] = tenantIds[0]; + secondMigrationOpts["tenantId"] = tenantIds[0].str; } jsTestLog("Starting tenant migration"); assert.commandWorked(test.startMigration(secondMigrationOpts)); |