fix: Keep spdlog loggers valid between tests (#2614)

This commit is contained in:
Ayaz Salikhov
2025-09-15 14:47:35 +01:00
committed by GitHub
parent e996f2b7ab
commit 3f2ada3439
53 changed files with 353 additions and 204 deletions

View File

@@ -41,7 +41,7 @@ using namespace std;
using namespace data::cassandra;
class BackendCassandraBaseTest : public NoLoggerFixture {
class BackendCassandraBaseTest : public virtual ::testing::Test {
protected:
static Handle
createHandle(std::string_view contactPoints, std::string_view keyspace)

View File

@@ -86,7 +86,7 @@ makeMigrationTestManagerAndBackend(ClioConfigDefinition const& config)
}
} // namespace
class MigrationCassandraSimpleTest : public WithPrometheus, public NoLoggerFixture {
class MigrationCassandraSimpleTest : public WithPrometheus {
// This function is used to prepare the database before running the tests
// It is called in the SetUp function. Different tests can override this function to prepare the database
// differently