summaryrefslogtreecommitdiff
path: root/src/mongo/db/timeseries/bucket_compression_test.cpp
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2023-02-01 20:54:39 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-08 02:46:14 +0000
commit567bcd0e4822d726aea15f0338c89c49de2a56b5 (patch)
treefa2a6ea1d3cbd4872fba26df3fdb44548544206f /src/mongo/db/timeseries/bucket_compression_test.cpp
parentf7afadd90f50662b2b3b3a45595b65b37a59bdc3 (diff)
downloadmongo-567bcd0e4822d726aea15f0338c89c49de2a56b5.tar.gz
SERVER-73112 Expose function to construct NamespaceString in unit tests
Diffstat (limited to 'src/mongo/db/timeseries/bucket_compression_test.cpp')
-rw-r--r--src/mongo/db/timeseries/bucket_compression_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/timeseries/bucket_compression_test.cpp b/src/mongo/db/timeseries/bucket_compression_test.cpp
index 3b1d7ef7215..0f2387f1514 100644
--- a/src/mongo/db/timeseries/bucket_compression_test.cpp
+++ b/src/mongo/db/timeseries/bucket_compression_test.cpp
@@ -77,8 +77,8 @@ const BSONObj sampleBucket = mongo::fromjson(R"({
})");
TEST(TimeseriesBucketCompression, BasicRoundtrip) {
- auto compressed =
- timeseries::compressBucket(sampleBucket, "t"_sd, NamespaceString{"test.foo"}, false);
+ auto compressed = timeseries::compressBucket(
+ sampleBucket, "t"_sd, NamespaceString::createNamespaceString_forTest("test.foo"), false);
ASSERT_TRUE(compressed.compressedBucket.has_value());
auto decompressed = timeseries::decompressBucket(compressed.compressedBucket.value());
ASSERT_TRUE(decompressed.has_value());