summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/view_response_formatter_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/view_response_formatter_test.cpp')
-rw-r--r--src/mongo/db/query/view_response_formatter_test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/query/view_response_formatter_test.cpp b/src/mongo/db/query/view_response_formatter_test.cpp
index 274bcda50f1..f42ddd71898 100644
--- a/src/mongo/db/query/view_response_formatter_test.cpp
+++ b/src/mongo/db/query/view_response_formatter_test.cpp
@@ -41,7 +41,7 @@
namespace mongo {
namespace {
-static const NamespaceString testNss("db.col");
+static const NamespaceString testNss = NamespaceString::createNamespaceString_forTest("db.col");
static const CursorId testCursor(1);
TEST(ViewResponseFormatter, FormatInitialCountResponseSuccessfully) {
@@ -62,7 +62,8 @@ TEST(ViewResponseFormatter, FormatSubsequentCountResponseSuccessfully) {
TEST(ViewResponseFormatter, FormatInitialCountResponseWithTenantIdSuccessfully) {
const TenantId tenantId(OID::gen());
- const NamespaceString nss(tenantId, testNss.toString());
+ const NamespaceString nss =
+ NamespaceString::createNamespaceString_forTest(tenantId, testNss.toString());
RAIIServerParameterControllerForTest multitenancyController("multitenancySupport", true);
@@ -119,7 +120,8 @@ TEST(ViewResponseFormatter, FormatSubsequentDistinctResponseSuccessfully) {
TEST(ViewResponseFormatter, FormatInitialDistinctResponseWithTenantIdSuccessfully) {
const TenantId tenantId(OID::gen());
- const NamespaceString nss(tenantId, testNss.toString());
+ const NamespaceString nss =
+ NamespaceString::createNamespaceString_forTest(tenantId, testNss.toString());
RAIIServerParameterControllerForTest multitenancyController("multitenancySupport", true);