mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 03:35:55 +00:00
committed by
Alex Kremer
parent
6c3c761dd1
commit
2951b4aaa0
@@ -432,7 +432,7 @@ ledgerHeaderFromRequest(std::shared_ptr<data::BackendInterface const> const& bac
|
||||
}
|
||||
} else if (indexValue.is_int64()) {
|
||||
ledgerSequence = indexValue.as_int64();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ledgerSequence = ctx.range.maxSequence;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/beast/http/message_generator.hpp>
|
||||
#include <boost/beast/http/read.hpp> // IWYU pragma: keep
|
||||
#include <boost/beast/http/string_body.hpp>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
||||
@@ -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"
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user