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

@@ -27,7 +27,7 @@
using namespace data;
struct LedgerCacheTest : util::prometheus::WithPrometheus, NoLoggerFixture {
struct LedgerCacheTest : util::prometheus::WithPrometheus {
LedgerCache cache;
};
@@ -39,7 +39,7 @@ TEST_F(LedgerCacheTest, defaultState)
EXPECT_EQ(cache.latestLedgerSequence(), 0u);
}
struct LedgerCachePrometheusMetricTest : util::prometheus::WithMockPrometheus, NoLoggerFixture {
struct LedgerCachePrometheusMetricTest : util::prometheus::WithMockPrometheus {
LedgerCache cache;
};