Починка тестов

This commit is contained in:
Антон
2025-11-25 11:52:02 +03:00
parent b4fc11c9ac
commit 0c7510f650
5 changed files with 2 additions and 6 deletions
@@ -18,8 +18,6 @@
#include "./../../src/helpers/helpers.h" #include "./../../src/helpers/helpers.h"
#include "../fixtures/AuthFixture.h" #include "../fixtures/AuthFixture.h"
const std::string kUUID = std::to_string(uad::Random());
using namespace std; using namespace std;
using namespace uad; using namespace uad;
using namespace boost; using namespace boost;
@@ -18,8 +18,6 @@
#include "./../../src/helpers/helpers.h" #include "./../../src/helpers/helpers.h"
#include "../fixtures/AuthFixture.h" #include "../fixtures/AuthFixture.h"
const std::string kUUID = std::to_string(uad::Random());
using namespace std; using namespace std;
using namespace uad; using namespace uad;
using namespace boost; using namespace boost;
@@ -15,8 +15,6 @@
#include "./../../src/helpers/helpers.h" #include "./../../src/helpers/helpers.h"
#include "./../fixtures/AuthFixture.h" #include "./../fixtures/AuthFixture.h"
const std::string kUUID = std::to_string(uad::Random());
using namespace std; using namespace std;
using namespace uad; using namespace uad;
using namespace boost; using namespace boost;
+1
View File
@@ -12,6 +12,7 @@ using namespace std;
namespace uad namespace uad
{ {
AuthFixture::AuthFixture() : AuthFixture::AuthFixture() :
kUUID(std::to_string(uad::Random())),
argv(boost::unit_test::framework::master_test_suite().argv), argv(boost::unit_test::framework::master_test_suite().argv),
mysql_credentials(argv[1]), mysql_credentials(argv[1]),
mysql_session(new mysqlx::Session(mysql_credentials)), mysql_session(new mysqlx::Session(mysql_credentials)),
+1
View File
@@ -20,6 +20,7 @@ public:
boost::beast::http::string_body>; boost::beast::http::string_body>;
using Request = boost::beast::http::request<boost::beast::http::string_body, using Request = boost::beast::http::request<boost::beast::http::string_body,
boost::beast::http::basic_fields<std::allocator<char>>>; boost::beast::http::basic_fields<std::allocator<char>>>;
const std::string kUUID;
char** argv; char** argv;
const std::string mysql_credentials; const std::string mysql_credentials;