Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

call q.begin and q.end, instead of q.unapplied_begin and q.unapplied_end, in unit tests #9226

Merged
merged 1 commit into from
Jun 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions unittests/unapplied_transaction_queue_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,22 +472,26 @@ BOOST_AUTO_TEST_CASE( unapplied_transaction_queue_incoming_count ) try {

BOOST_CHECK( q.incoming_size() == expected );

auto itr = q.unapplied_begin();
auto end = q.unapplied_end();
auto itr = q.begin();
auto end = q.end();

while( itr != end ) {
q.add_persisted( itr->trx_meta );
--expected;
BOOST_CHECK( q.incoming_size() == expected );
++itr;
}

itr = q.unapplied_begin();
end = q.unapplied_end();
BOOST_CHECK( q.incoming_size() == 0 );

itr = q.begin();
end = q.end();

while( itr != end ) {
q.add_incoming( itr->trx_meta, false, [](auto){} );
++expected;
BOOST_CHECK( q.incoming_size() == expected );
++itr;
}

} FC_LOG_AND_RETHROW() /// unapplied_transaction_queue_incoming_count
Expand Down