Skip to content

Commit

Permalink
GH-1083 Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Aug 14, 2023
1 parent 1fa2c17 commit 74c672b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions unittests/delay_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1906,6 +1906,7 @@ BOOST_AUTO_TEST_CASE( canceldelay_test ) { try {
BOOST_REQUIRE_EQUAL(transaction_receipt::executed, trace->receipt->status);
// now push for real
trace = chain.push_transaction(trx);
BOOST_REQUIRE_EQUAL(transaction_receipt::executed, trace->receipt->status);
gen_size = chain.control->db().get_index<generated_transaction_multi_index,by_trx_id>().size();
BOOST_CHECK_EQUAL(2u, gen_size);

Expand Down
3 changes: 2 additions & 1 deletion unittests/dry_run_trx_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ struct dry_run_trx_tester : validating_tester {
getage_data = abi_ser.variant_to_binary("getage", mutable_variant_object()
("user", "alice"),
abi_serializer::create_yield_function( abi_serializer_max_time ));
produce_block();
}

void send_action(const action& act, bool sign = false) {
Expand Down Expand Up @@ -116,6 +115,8 @@ BOOST_FIXTURE_TEST_CASE(newaccount_test, dry_run_trx_tester) { try {
send_action(act, false); // should not throw
send_action(act, true); // should not throw
BOOST_CHECK_THROW(control->get_account("alice"_n), fc::exception); // not actually created
produce_blocks( 1 );
BOOST_CHECK_THROW(control->get_account("alice"_n), fc::exception); // not actually created
} FC_LOG_AND_RETHROW() }

BOOST_FIXTURE_TEST_CASE(setcode_test, dry_run_trx_tester) { try {
Expand Down

0 comments on commit 74c672b

Please sign in to comment.