Skip to content

Commit

Permalink
Fix warnings in gas estimation tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yarkinwho committed Dec 5, 2023
1 parent b2fa122 commit 595b411
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions silkworm/silkrpc/core/estimate_gas_oracle_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,8 @@ TEST_CASE("estimate gas") {

try {
EXPECT_CALL(estimate_gas_oracle, try_execution(_, _, _))
.Times(3)
.WillOnce(Return(expect_result_fail_pre_check))
.WillRepeatedly(Return(expect_result_fail));
.Times(1)
.WillOnce(Return(expect_result_fail_pre_check));
auto result = boost::asio::co_spawn(pool, estimate_gas_oracle.estimate_gas(call, block), boost::asio::use_future);
result.get();
CHECK(false);
Expand All @@ -415,9 +414,8 @@ TEST_CASE("estimate gas") {

try {
EXPECT_CALL(estimate_gas_oracle, try_execution(_, _, _))
.Times(3)
.WillOnce(Return(expect_result_fail_pre_check))
.WillRepeatedly(Return(expect_result_fail));
.Times(1)
.WillOnce(Return(expect_result_fail_pre_check));
auto result = boost::asio::co_spawn(pool, estimate_gas_oracle.estimate_gas(call, block), boost::asio::use_future);
result.get();
CHECK(false);
Expand Down

0 comments on commit 595b411

Please sign in to comment.