From a21011799b7b787469170f17e9c2f64633df3357 Mon Sep 17 00:00:00 2001 From: Sergey Kuznetsov Date: Wed, 16 Oct 2024 11:39:23 +0100 Subject: [PATCH] style: Fix include (#1687) Fixes #1686 --- src/rpc/RPCHelpers.cpp | 2 +- tests/common/util/TestHttpServer.cpp | 1 + tests/unit/rpc/handlers/LedgerEntryTests.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rpc/RPCHelpers.cpp b/src/rpc/RPCHelpers.cpp index c9b5d2c2a..e1a474fd1 100644 --- a/src/rpc/RPCHelpers.cpp +++ b/src/rpc/RPCHelpers.cpp @@ -432,7 +432,7 @@ ledgerHeaderFromRequest(std::shared_ptr const& bac } } else if (indexValue.is_int64()) { ledgerSequence = indexValue.as_int64(); -} + } } else { ledgerSequence = ctx.range.maxSequence; } diff --git a/tests/common/util/TestHttpServer.cpp b/tests/common/util/TestHttpServer.cpp index 1fe361256..904978fa2 100644 --- a/tests/common/util/TestHttpServer.cpp +++ b/tests/common/util/TestHttpServer.cpp @@ -31,6 +31,7 @@ #include #include #include +#include // IWYU pragma: keep #include #include diff --git a/tests/unit/rpc/handlers/LedgerEntryTests.cpp b/tests/unit/rpc/handlers/LedgerEntryTests.cpp index 8fa0ed84d..51d9cd10f 100644 --- a/tests/unit/rpc/handlers/LedgerEntryTests.cpp +++ b/tests/unit/rpc/handlers/LedgerEntryTests.cpp @@ -2960,7 +2960,7 @@ TEST_F(RPCLedgerEntryDeathTest, RangeNotAvailable) )); checkCalled = true; EXPECT_DEATH( - { [[maybe_unused]] auto _ = handler.process(req, Context{yield}); }, "Ledger range must be available" + { [[maybe_unused]] auto _unused2 = handler.process(req, Context{yield}); }, "Ledger range must be available" ); });