mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-26 22:55:53 +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 {
|
class BackendCassandraFactoryTestWithDB : public BackendCassandraFactoryTest {
|
||||||
protected:
|
public:
|
||||||
~BackendCassandraFactoryTestWithDB()
|
~BackendCassandraFactoryTestWithDB()
|
||||||
{
|
{
|
||||||
// drop the keyspace for next test
|
// drop the keyspace for next test
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ protected:
|
|||||||
|
|
||||||
std::default_random_engine randomEngine_{0};
|
std::default_random_engine randomEngine_{0};
|
||||||
|
|
||||||
|
public:
|
||||||
~BackendCassandraTest()
|
~BackendCassandraTest()
|
||||||
{
|
{
|
||||||
// drop the keyspace for next test
|
// drop the keyspace for next test
|
||||||
|
|||||||
@@ -142,6 +142,13 @@ protected:
|
|||||||
std::shared_ptr<migration::MigrationManagerInterface> testMigrationManager_;
|
std::shared_ptr<migration::MigrationManagerInterface> testMigrationManager_;
|
||||||
std::shared_ptr<CassandraMigrationTestBackend> testMigrationBackend_;
|
std::shared_ptr<CassandraMigrationTestBackend> testMigrationBackend_;
|
||||||
|
|
||||||
|
void
|
||||||
|
SetUp() override
|
||||||
|
{
|
||||||
|
setupDatabase();
|
||||||
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
MigrationCassandraSimpleTest()
|
MigrationCassandraSimpleTest()
|
||||||
{
|
{
|
||||||
auto const testBundle = makeMigrationTestManagerAndBackend(cfg_);
|
auto const testBundle = makeMigrationTestManagerAndBackend(cfg_);
|
||||||
@@ -149,12 +156,6 @@ protected:
|
|||||||
testMigrationBackend_ = testBundle.second;
|
testMigrationBackend_ = testBundle.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
SetUp() override
|
|
||||||
{
|
|
||||||
setupDatabase();
|
|
||||||
}
|
|
||||||
|
|
||||||
~MigrationCassandraSimpleTest()
|
~MigrationCassandraSimpleTest()
|
||||||
{
|
{
|
||||||
// drop the keyspace
|
// drop the keyspace
|
||||||
|
|||||||
Reference in New Issue
Block a user