Skip to content

Commit

Permalink
GH-1614 Cleanup inline action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Sep 15, 2023
1 parent 3e3f8d0 commit d8f99d5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions unittests/api_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1565,12 +1565,12 @@ BOOST_FIXTURE_TEST_CASE(transaction_tests, validating_tester) { try {
} FC_LOG_AND_RETHROW() }

/*************************************************************************************
* verify subjective limit test case
* verify objective limit test case
*************************************************************************************/
BOOST_AUTO_TEST_CASE(inline_action_subjective_limit) { try {
BOOST_AUTO_TEST_CASE(inline_action_with_over_4k_limit) { try {
const uint32_t _4k = 4 * 1024;
tester chain(setup_policy::full, db_read_mode::HEAD, {_4k + 100}, {_4k + 1});
tester chain2(setup_policy::full, db_read_mode::HEAD, {_4k + 100}, {_4k});
tester chain(setup_policy::full, db_read_mode::HEAD, {_4k + 100});
tester chain2(setup_policy::full, db_read_mode::HEAD, {_4k + 100});
signed_block_ptr block;
for (int n=0; n < 2; ++n) {
block = chain.produce_block();
Expand All @@ -1597,7 +1597,7 @@ BOOST_AUTO_TEST_CASE(inline_action_subjective_limit) { try {
*************************************************************************************/
BOOST_AUTO_TEST_CASE(inline_action_objective_limit) { try {
const uint32_t _4k = 4 * 1024;
tester chain(setup_policy::full, db_read_mode::HEAD, {_4k}, {_4k - 1});
tester chain(setup_policy::full, db_read_mode::HEAD, {_4k});
chain.produce_blocks(2);
chain.create_account( "testapi"_n );
chain.produce_blocks(100);
Expand All @@ -1617,10 +1617,10 @@ BOOST_AUTO_TEST_CASE(inline_action_objective_limit) { try {

} FC_LOG_AND_RETHROW() }

BOOST_AUTO_TEST_CASE(deferred_inline_action_subjective_limit) { try {
BOOST_AUTO_TEST_CASE(deferred_inline_action_limit) { try {
const uint32_t _4k = 4 * 1024;
tester chain(setup_policy::full, db_read_mode::HEAD, {_4k + 100}, {_4k + 1});
tester chain2(setup_policy::full, db_read_mode::HEAD, {_4k + 100}, {_4k});
tester chain(setup_policy::full, db_read_mode::HEAD, {_4k + 100});
tester chain2(setup_policy::full, db_read_mode::HEAD, {_4k + 100});
signed_block_ptr block;
for (int n=0; n < 2; ++n) {
block = chain.produce_block();
Expand Down

0 comments on commit d8f99d5

Please sign in to comment.