summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string_test.cpp
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-07-29 20:37:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-29 21:07:09 +0000
commit2cea88c626b6d10f2eb0100abb1eb127e240b7e8 (patch)
treed03d3187afbabc638417037359a318a5bc54039d /src/mongo/db/namespace_string_test.cpp
parentf99bc7f9126af4f99e8bc0ed062802f0ce813f9b (diff)
downloadmongo-2cea88c626b6d10f2eb0100abb1eb127e240b7e8.tar.gz
SERVER-68358 Turn off multitenancySupport flag in unit tests after use
Diffstat (limited to 'src/mongo/db/namespace_string_test.cpp')
-rw-r--r--src/mongo/db/namespace_string_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/namespace_string_test.cpp b/src/mongo/db/namespace_string_test.cpp
index 18eec1c1ce0..72e3ee770a6 100644
--- a/src/mongo/db/namespace_string_test.cpp
+++ b/src/mongo/db/namespace_string_test.cpp
@@ -34,6 +34,7 @@
#include "mongo/db/multitenancy_gen.h"
#include "mongo/db/namespace_string.h"
#include "mongo/db/repl/optime.h"
+#include "mongo/idl/server_parameter_test_util.h"
#include "mongo/unittest/unittest.h"
namespace mongo {
@@ -357,7 +358,7 @@ TEST(NamespaceStringTest, NSSNoCollectionWithTenantId) {
}
TEST(NamespaceStringTest, ParseNSSWithTenantId) {
- gMultitenancySupport = true;
+ RAIIServerParameterControllerForTest multitenanyController("multitenancySupport", true);
TenantId tenantId(OID::gen());
std::string tenantNsStr = str::stream() << tenantId.toString() << "_foo.bar";