fix: Make ctors/dtors public in tests (#2089)

Fix: https://github.com/XRPLF/clio/issues/2087
This commit is contained in:
Ayaz Salikhov
2025-05-07 12:49:47 +01:00
committed by GitHub
parent 68f832a832
commit e75aa1add1
3 changed files with 9 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ protected:
};
class BackendCassandraFactoryTestWithDB : public BackendCassandraFactoryTest {
protected:
public:
~BackendCassandraFactoryTestWithDB()
{
// drop the keyspace for next test

View File

@@ -115,6 +115,7 @@ protected:
std::default_random_engine randomEngine_{0};
public:
~BackendCassandraTest()
{
// drop the keyspace for next test

View File

@@ -142,6 +142,13 @@ protected:
std::shared_ptr<migration::MigrationManagerInterface> testMigrationManager_;
std::shared_ptr<CassandraMigrationTestBackend> testMigrationBackend_;
void
SetUp() override
{
setupDatabase();
}
public:
MigrationCassandraSimpleTest()
{
auto const testBundle = makeMigrationTestManagerAndBackend(cfg_);
@@ -149,12 +156,6 @@ protected:
testMigrationBackend_ = testBundle.second;
}
void
SetUp() override
{
setupDatabase();
}
~MigrationCassandraSimpleTest()
{
// drop the keyspace