diff options
Diffstat (limited to 'src/mongo/db/auth/security_key_test.cpp')
-rw-r--r-- | src/mongo/db/auth/security_key_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/auth/security_key_test.cpp b/src/mongo/db/auth/security_key_test.cpp index 7a33cfbbad7..e64aded89f6 100644 --- a/src/mongo/db/auth/security_key_test.cpp +++ b/src/mongo/db/auth/security_key_test.cpp @@ -160,8 +160,7 @@ TEST(SecurityFile, Test) { } TEST(SecurityKey, Test) { - UserRequest systemLocal(UserName("__system"_sd, "local"_sd), boost::none); - internalSecurity.setUser(std::make_shared<UserHandle>(User(systemLocal))); + internalSecurity.setUser(std::make_shared<UserHandle>(User(UserName("__system", "local")))); for (const auto& testCase : testCases) { TestFile file(testCase.fileContents, testCase.mode != TestCase::FailureMode::Permissions); |