diff --git a/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp b/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp index 69f99c2..1d25d06 100644 --- a/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp +++ b/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp @@ -20,19 +20,20 @@ using RouteAuthRegistrationExecutor = AuthRegistrationExecutor(GetMySqlSession()); - auto executor = make_shared(GetMySqlSession(), user_dao); + uad::SetMySqlSession(mysql_session); - BOOST_CHECK(true == true); - } + auto user_dao = make_shared(GetMySqlSession()); + auto executor = make_shared(GetMySqlSession(), user_dao); - delete &GetMySqlSession(); + BOOST_CHECK(true == true); + + mysql_session->close(); + delete mysql_session; }