From 66691c45a0706d02d97d40ef5c9dfddcc7cc4577 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:06:21 +0000 Subject: [PATCH] style: clang-tidy auto fixes (#1766) Fixes #1765. --- tests/unit/rpc/handlers/AllHandlerTests.cpp | 10 ++++------ tests/unit/rpc/handlers/LedgerEntryTests.cpp | 3 --- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/unit/rpc/handlers/AllHandlerTests.cpp b/tests/unit/rpc/handlers/AllHandlerTests.cpp index 62af2996..c0ba97f5 100644 --- a/tests/unit/rpc/handlers/AllHandlerTests.cpp +++ b/tests/unit/rpc/handlers/AllHandlerTests.cpp @@ -50,23 +50,21 @@ #include "util/Assert.hpp" #include "util/HandlerBaseTestFixture.hpp" #include "util/MockAmendmentCenter.hpp" +#include "util/MockCounters.hpp" #include "util/MockCountersFixture.hpp" +#include "util/MockETLService.hpp" #include "util/MockETLServiceTestFixture.hpp" +#include "util/MockLoadBalancer.hpp" #include "util/MockSubscriptionManager.hpp" #include "util/MockWsBase.hpp" #include "util/TestObject.hpp" #include "web/SubscriptionContextInterface.hpp" -#include -#include #include -#include #include -#include #include #include #include -#include #include #include @@ -247,7 +245,7 @@ TYPED_TEST(AllHandlersDeathTest, NoRangeAvailable) // doesn't work without 'this' this->runSpawn( [&](boost::asio::yield_context yield) { - TypeParam handler = this->handler_; + TypeParam const handler = this->handler_; auto const input = createInput(); auto const context = Context{yield, this->session_}; diff --git a/tests/unit/rpc/handlers/LedgerEntryTests.cpp b/tests/unit/rpc/handlers/LedgerEntryTests.cpp index 26099bd6..15b06dc3 100644 --- a/tests/unit/rpc/handlers/LedgerEntryTests.cpp +++ b/tests/unit/rpc/handlers/LedgerEntryTests.cpp @@ -27,9 +27,6 @@ #include "util/NameGenerator.hpp" #include "util/TestObject.hpp" -#include -#include -#include #include #include #include