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:
@@ -37,7 +37,7 @@
|
||||
|
||||
using namespace app;
|
||||
|
||||
struct StopperTest : NoLoggerFixture {
|
||||
struct StopperTest : virtual public ::testing::Test {
|
||||
protected:
|
||||
// Order here is important, stopper_ should die before mockCallback_, otherwise UB
|
||||
testing::StrictMock<testing::MockFunction<void(boost::asio::yield_context)>> mockCallback_;
|
||||
|
||||
@@ -54,7 +54,7 @@ using namespace app;
|
||||
namespace http = boost::beast::http;
|
||||
using namespace util::config;
|
||||
|
||||
struct WebHandlersTest : virtual NoLoggerFixture {
|
||||
struct WebHandlersTest : virtual public ::testing::Test {
|
||||
DOSGuardStrictMock dosGuardMock;
|
||||
util::TagDecoratorFactory const tagFactory{
|
||||
ClioConfigDefinition{{"log.tag_style", ConfigValue{ConfigType::String}.defaultValue("uint")}}
|
||||
|
||||
Reference in New Issue
Block a user