mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-27 07:05:54 +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()) {
|
} else if (indexValue.is_int64()) {
|
||||||
ledgerSequence = indexValue.as_int64();
|
ledgerSequence = indexValue.as_int64();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ledgerSequence = ctx.range.maxSequence;
|
ledgerSequence = ctx.range.maxSequence;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
#include <boost/beast/http/error.hpp>
|
#include <boost/beast/http/error.hpp>
|
||||||
#include <boost/beast/http/message.hpp>
|
#include <boost/beast/http/message.hpp>
|
||||||
#include <boost/beast/http/message_generator.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 <boost/beast/http/string_body.hpp>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
|
|||||||
@@ -2960,7 +2960,7 @@ TEST_F(RPCLedgerEntryDeathTest, RangeNotAvailable)
|
|||||||
));
|
));
|
||||||
checkCalled = true;
|
checkCalled = true;
|
||||||
EXPECT_DEATH(
|
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