Skip to content

Commit 60a2fdc

Browse files
committed
fix unit test compilation in gcc
1 parent 7c150d2 commit 60a2fdc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

silkworm/rpc/commands/debug_api_test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
#include <catch2/catch_test_macros.hpp>
1414
#include <nlohmann/json.hpp>
1515

16-
#include <silkworm/db/chain/chain_storage.hpp>
17-
#include <silkworm/db/kv/api/base_transaction.hpp>
1816
#include <silkworm/db/kv/api/cursor.hpp>
1917
#include <silkworm/db/kv/api/endpoint/paginated_sequence.hpp>
2018
#include <silkworm/db/kv/api/endpoint/temporal_range.hpp>
21-
#include <silkworm/db/kv/api/service.hpp>
2219
#include <silkworm/db/kv/api/state_cache.hpp>
20+
#if !defined(__clang__)
21+
#include <silkworm/db/tables.hpp>
22+
#endif // !defined(__clang__)
2323
#include <silkworm/db/test_util/mock_transaction.hpp>
2424
#include <silkworm/infra/concurrency/shared_service.hpp>
2525
#include <silkworm/rpc/core/filter_storage.hpp>
@@ -152,15 +152,15 @@ TEST_CASE("get_modified_accounts") {
152152
.from_timestamp = static_cast<db::kv::api::Timestamp>(0),
153153
.to_timestamp = static_cast<db::kv::api::Timestamp>(19),
154154
.ascending_order = true};
155-
EXPECT_CALL(transaction, history_range(std::move(request))).WillOnce(Invoke([=](Unused) -> Task<db::kv::api::PaginatedKeysValues> {
155+
EXPECT_CALL(transaction, history_range(std::move(request))).WillOnce(Invoke([=](Unused) -> Task<db::kv::api::KeyValueStreamReply> {
156156
PaginatorKV paginator = [](auto next_page_token) -> Task<PageResultKV> {
157157
co_return PageResultKV{
158158
.keys = {*from_hex("07aaec0b237ccf56b03a7c43c1c7a783da5606420501010101")},
159159
.values = {Bytes{}}, // encoded account value doesn't care
160160
.next_page_token = std::move(next_page_token)};
161161
};
162162
db::kv::api::PaginatedKeysValues result{paginator};
163-
co_return result;
163+
co_return db::kv::api::KeyValueStreamReply{result};
164164
}));
165165

166166
auto result = boost::asio::co_spawn(pool, get_modified_accounts(tx, 0x52a010, 0x52a010, 0x800000), boost::asio::use_future);

0 commit comments

Comments
 (0)