diff options
Diffstat (limited to 'src/mongo/db/auth/sasl_authentication_session_test.cpp')
-rw-r--r-- | src/mongo/db/auth/sasl_authentication_session_test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/auth/sasl_authentication_session_test.cpp b/src/mongo/db/auth/sasl_authentication_session_test.cpp index bdf8edc175d..d83f8455a23 100644 --- a/src/mongo/db/auth/sasl_authentication_session_test.cpp +++ b/src/mongo/db/auth/sasl_authentication_session_test.cpp @@ -55,7 +55,6 @@ #include "mongo/util/password_digest.h" namespace mongo { - namespace { class SaslConversation : public ServiceContextTest { @@ -94,10 +93,10 @@ SaslConversation::SaslConversation(std::string mech) : opCtx(makeOperationContext()), authManagerExternalState(new AuthzManagerExternalStateMock), authManager(new AuthorizationManagerImpl( - std::unique_ptr<AuthzManagerExternalState>(authManagerExternalState), - AuthorizationManagerImpl::InstallMockForTestingOrAuthImpl{})), + getServiceContext(), + std::unique_ptr<AuthzManagerExternalState>(authManagerExternalState))), authSession(authManager->makeAuthorizationSession()), - registry(opCtx->getServiceContext(), {"SCRAM-SHA-1", "SCRAM-SHA-256", "PLAIN"}), + registry(getServiceContext(), {"SCRAM-SHA-1", "SCRAM-SHA-256", "PLAIN"}), mechanism(mech) { AuthorizationManager::set(getServiceContext(), |