mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-18 18:55:51 +00:00
fix: Make ctors/dtors public in tests (#2089)
Fix: https://github.com/XRPLF/clio/issues/2087
This commit is contained in:
@@ -84,7 +84,7 @@ protected:
|
||||
};
|
||||
|
||||
class BackendCassandraFactoryTestWithDB : public BackendCassandraFactoryTest {
|
||||
protected:
|
||||
public:
|
||||
~BackendCassandraFactoryTestWithDB()
|
||||
{
|
||||
// drop the keyspace for next test
|
||||
|
||||
@@ -115,6 +115,7 @@ protected:
|
||||
|
||||
std::default_random_engine randomEngine_{0};
|
||||
|
||||
public:
|
||||
~BackendCassandraTest()
|
||||
{
|
||||
// drop the keyspace for next test
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user