test: Remove SetUp and TearDown methods in tests (#2086)

Fix: https://github.com/XRPLF/clio/issues/910
This commit is contained in:
Ayaz Salikhov
2025-05-07 09:41:23 +01:00
committed by GitHub
parent 9af36e5235
commit 5e43c3b099
8 changed files with 11 additions and 61 deletions

View File

@@ -55,17 +55,6 @@ constexpr auto kAGE = 800;
} // namespace
struct ETLLedgerPublisherTest : util::prometheus::WithPrometheus, MockBackendTestStrict, SyncAsioContextTest {
void
SetUp() override
{
SyncAsioContextTest::SetUp();
}
void
TearDown() override
{
SyncAsioContextTest::TearDown();
}
util::config::ClioConfigDefinition cfg{{}};
MockLedgerCache mockCache;
StrictMockSubscriptionManagerSharedPtr mockSubscriptionManagerPtr;

View File

@@ -60,8 +60,7 @@ struct ETLTransformerTest : util::prometheus::WithPrometheus, MockBackendTest {
using TransformerType = etl::impl::
Transformer<ExtractionDataPipeType, LedgerLoaderType, LedgerPublisherType, AmendmentBlockHandlerType>;
void
SetUp() override
ETLTransformerTest()
{
state_.isStopping = false;
state_.writeConflict = false;
@@ -69,12 +68,6 @@ struct ETLTransformerTest : util::prometheus::WithPrometheus, MockBackendTest {
state_.isWriting = false;
}
void
TearDown() override
{
transformer_.reset();
}
protected:
ExtractionDataPipeType dataPipe_;
LedgerLoaderType ledgerLoader_;