summaryrefslogtreecommitdiff
path: root/jstests/serverless/shard_split_timeseries_collections.js
diff options
context:
space:
mode:
authormathisbessamdb <mathis.bessa@mongodb.com>2022-11-18 23:04:18 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-18 23:58:48 +0000
commit4fd85ab061c1b31af3d641d743420d66ce25cf5c (patch)
treeac715e5637d6aee1523be2fdc8bf185058910c60 /jstests/serverless/shard_split_timeseries_collections.js
parent0d9b3912cee0897af35ec529a687d886f2b5a06d (diff)
downloadmongo-4fd85ab061c1b31af3d641d743420d66ce25cf5c.tar.gz
SERVER-71179 Update the ShardSplitCommands to use the TenantId class
Diffstat (limited to 'jstests/serverless/shard_split_timeseries_collections.js')
-rw-r--r--jstests/serverless/shard_split_timeseries_collections.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/serverless/shard_split_timeseries_collections.js b/jstests/serverless/shard_split_timeseries_collections.js
index 1e557228497..611bffbfeaf 100644
--- a/jstests/serverless/shard_split_timeseries_collections.js
+++ b/jstests/serverless/shard_split_timeseries_collections.js
@@ -27,8 +27,8 @@ test.addRecipientNodes();
const donorPrimary = test.donor.getPrimary();
-const tenantId = "testTenantId";
-const tsDB = test.tenantDB(tenantId, "tsDB");
+const tenantId = ObjectId();
+const tsDB = test.tenantDB(tenantId.str, "tsDB");
const donorTSDB = donorPrimary.getDB(tsDB);
assert.commandWorked(donorTSDB.createCollection("tsColl", {timeseries: {timeField: "time"}}));
assert.commandWorked(donorTSDB.runCommand(