Skip to content

Commit 34e48a9

Browse files
pierlauroMongoDB Bot
authored andcommitted
SERVER-112059 Adapt leftover readonly test for viewless timeseries (#43941)
GitOrigin-RevId: 4b3dd92c8ac9caabf4935a99e113ff5cb589507b
1 parent f84c0d5 commit 34e48a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jstests/readonly/catalog_ops.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* featureFlagCreateViewlessTimeseriesCollections_incompatible,
55
* ]
66
*/
7+
import {getTimeseriesCollForDDLOps} from "jstests/core/timeseries/libs/viewless_timeseries_util.js";
78
import {runReadOnlyTest} from "jstests/readonly/lib/read_only_test.js";
89

910
runReadOnlyTest(
@@ -13,7 +14,6 @@ runReadOnlyTest(
1314

1415
collectionNames: ["foo", "bar", "baz", "garply"],
1516
tsCollectionName: "tsColl",
16-
tsBucketsCollectionName: "system.buckets.tsColl",
1717
indexSpecs: [{a: 1}, {a: 1, b: -1}, {a: 1, b: 1, c: -1}],
1818

1919
load: function (writableCollection) {
@@ -34,7 +34,7 @@ runReadOnlyTest(
3434
db.createCollection(this.tsCollectionName, {timeseries: {timeField: "time", metaField: "meta"}}),
3535
);
3636

37-
this.collectionNames.push(this.tsCollectionName, this.tsBucketsCollectionName);
37+
this.collectionNames.push(this.tsCollectionName, getTimeseriesCollForDDLOps(db, this.tsCollectionName));
3838

3939
// Create some indexes so we can verify that listIndexes works in read-only mode.
4040
for (let indexSpec of this.indexSpecs) {

0 commit comments

Comments
 (0)