From 0c7510f6506f6a01b0e63abf9a5e5968e6ce1169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Tue, 25 Nov 2025 11:52:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=87=D0=B8=D0=BD=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp | 2 -- tests/endpoint_handlers/AuthLogoutExecutor_TEST.cpp | 2 -- tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp | 2 -- tests/fixtures/AuthFixture.cpp | 1 + tests/fixtures/AuthFixture.h | 1 + 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp b/tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp index 986e754..d6fae3d 100644 --- a/tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp +++ b/tests/endpoint_handlers/AuthLoginExecutor_TEST.cpp @@ -18,8 +18,6 @@ #include "./../../src/helpers/helpers.h" #include "../fixtures/AuthFixture.h" -const std::string kUUID = std::to_string(uad::Random()); - using namespace std; using namespace uad; using namespace boost; diff --git a/tests/endpoint_handlers/AuthLogoutExecutor_TEST.cpp b/tests/endpoint_handlers/AuthLogoutExecutor_TEST.cpp index 7030012..ae43c52 100644 --- a/tests/endpoint_handlers/AuthLogoutExecutor_TEST.cpp +++ b/tests/endpoint_handlers/AuthLogoutExecutor_TEST.cpp @@ -18,8 +18,6 @@ #include "./../../src/helpers/helpers.h" #include "../fixtures/AuthFixture.h" -const std::string kUUID = std::to_string(uad::Random()); - using namespace std; using namespace uad; using namespace boost; diff --git a/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp b/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp index b916bc2..cf365b2 100644 --- a/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp +++ b/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp @@ -15,8 +15,6 @@ #include "./../../src/helpers/helpers.h" #include "./../fixtures/AuthFixture.h" -const std::string kUUID = std::to_string(uad::Random()); - using namespace std; using namespace uad; using namespace boost; diff --git a/tests/fixtures/AuthFixture.cpp b/tests/fixtures/AuthFixture.cpp index 675064e..f2ef819 100644 --- a/tests/fixtures/AuthFixture.cpp +++ b/tests/fixtures/AuthFixture.cpp @@ -12,6 +12,7 @@ using namespace std; namespace uad { AuthFixture::AuthFixture() : + kUUID(std::to_string(uad::Random())), argv(boost::unit_test::framework::master_test_suite().argv), mysql_credentials(argv[1]), mysql_session(new mysqlx::Session(mysql_credentials)), diff --git a/tests/fixtures/AuthFixture.h b/tests/fixtures/AuthFixture.h index 49f07e1..4cbcff3 100644 --- a/tests/fixtures/AuthFixture.h +++ b/tests/fixtures/AuthFixture.h @@ -20,6 +20,7 @@ public: boost::beast::http::string_body>; using Request = boost::beast::http::request>>; + const std::string kUUID; char** argv; const std::string mysql_credentials;