mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
fix: Keep spdlog loggers valid between tests (#2614)
This commit is contained in:
@@ -38,7 +38,7 @@ using namespace util::config;
|
||||
using namespace rpc::impl;
|
||||
namespace json = boost::json;
|
||||
|
||||
class RPCAPIVersionTest : public NoLoggerFixture {
|
||||
class RPCAPIVersionTest : public virtual ::testing::Test {
|
||||
protected:
|
||||
ProductionAPIVersionParser parser_{kDEFAULT_API_VERSION, kMIN_API_VERSION, kMAX_API_VERSION};
|
||||
};
|
||||
|
||||
@@ -49,7 +49,7 @@ using namespace rpc::modifiers;
|
||||
|
||||
namespace json = boost::json;
|
||||
|
||||
class RPCBaseTest : public NoLoggerFixture {};
|
||||
class RPCBaseTest : public virtual ::testing::Test {};
|
||||
|
||||
TEST_F(RPCBaseTest, CheckType)
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ using util::prometheus::CounterInt;
|
||||
using util::prometheus::WithMockPrometheus;
|
||||
using util::prometheus::WithPrometheus;
|
||||
|
||||
struct RPCCountersTest : WithPrometheus, NoLoggerFixture {
|
||||
struct RPCCountersTest : WithPrometheus {
|
||||
WorkQueue queue{4u, 1024u}; // todo: mock instead
|
||||
Counters counters{queue};
|
||||
};
|
||||
|
||||
@@ -39,7 +39,7 @@ using namespace util::config;
|
||||
using namespace rpc;
|
||||
using namespace util::prometheus;
|
||||
|
||||
struct RPCWorkQueueTestBase : NoLoggerFixture {
|
||||
struct RPCWorkQueueTestBase : public virtual ::testing::Test {
|
||||
ClioConfigDefinition cfg = {
|
||||
{"server.max_queue_size", ConfigValue{ConfigType::Integer}.defaultValue(2)},
|
||||
{"workers", ConfigValue{ConfigType::Integer}.defaultValue(4)}
|
||||
|
||||
Reference in New Issue
Block a user