Skip to content

Commit

Permalink
1545 Fix pull request comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Dec 30, 2024
1 parent 55c8e71 commit 2443d19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unittests/libweb3jsonrpc/jsonrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4719,6 +4719,10 @@ BOOST_AUTO_TEST_CASE( test_blocks ) {
BOOST_AUTO_TEST_CASE( test_transactions ) {
simulateMining( *client, 1, Address( "0xf6c2a4ba2350e58a45916a03d0faa70dcc5dcfbf" ) );

// give it some time since testing fixture is not reliable
// to do - move to real skaled testing
sleep(3);

dev::rpc::_detail::GappedTransactionIndexCache cache( 10, *client );

Transaction invalid( fromHex( "0x00112233445566778899001122334455667788990011223344556677889900"
Expand All @@ -4735,6 +4739,11 @@ BOOST_AUTO_TEST_CASE( test_transactions ) {
CheckTransaction::None );
valid.ignoreExternalGas();


// give it some time since testing fixture is not reliable
// to do - move to real skaled testing
sleep(3);

client->importTransactionsAsBlock( Transactions{ invalid, valid }, 1 );

BOOST_REQUIRE_EQUAL( cache.realBlockTransactionCount( LatestBlock ), 2 );
Expand Down

0 comments on commit 2443d19

Please sign in to comment.