diff --git a/libraries/testing/tester.cpp b/libraries/testing/tester.cpp index 04c035cb32453880417c93e49877a7bc4a08ff4b..9c53a6ec7c2883b22f67c4301022900fc1bb1751 100644 --- a/libraries/testing/tester.cpp +++ b/libraries/testing/tester.cpp @@ -218,8 +218,8 @@ namespace eosio { namespace testing { try { push_transaction(trx); } catch (const fc::exception& ex) { - //return error(ex.top_message()); - return error(ex.to_detail_string()); + return error(ex.top_message()); // top_message() is assumed by many tests; otherwise they fail + //return error(ex.to_detail_string()); } produce_block(); BOOST_REQUIRE_EQUAL(true, chain_has_transaction(trx.id())); @@ -275,7 +275,7 @@ namespace eosio { namespace testing { return push_transaction(trx); } FC_CAPTURE_AND_RETHROW( (code)(acttype)(auths)(data)(expiration) ) } - action base_tester::get_action( account_name code, action_name acttype, vector auths, + action base_tester::get_action( account_name code, action_name acttype, vector auths, const variant_object& data )const { const auto& acnt = control->db().get(code); auto abi = acnt.get_abi(); @@ -650,7 +650,7 @@ namespace eosio { namespace testing { void base_tester::push_genesis_block() { set_code(config::system_account_name, eosio_bios_wast); - + set_abi(config::system_account_name, eosio_bios_abi); //produce_block(); } diff --git a/unittests/api_tests.cpp b/unittests/api_tests.cpp index 18579a886b6d16da8de137f40c490b27cd9d1549..03d186a04e1d046ec1b915f697023ac4f81575c1 100644 --- a/unittests/api_tests.cpp +++ b/unittests/api_tests.cpp @@ -905,6 +905,7 @@ BOOST_FIXTURE_TEST_CASE(db_tests, TESTER) { try { N(testapi2), WASM_TEST_ACTION("test_db", "test_invalid_access"), fc::raw::pack(ia2)), N(testapi2) ); + wdump((res)); BOOST_CHECK_EQUAL( boost::algorithm::ends_with(res, "db access violation"), true ); diff --git a/unittests/bootseq_tests.cpp b/unittests/bootseq_tests.cpp index f3c0da07b5dc76a59f9cc5f3ec5a56a18b1b0d34..9ce655f9de0803266606ed97b02f05a2c042268a 100644 --- a/unittests/bootseq_tests.cpp +++ b/unittests/bootseq_tests.cpp @@ -220,14 +220,18 @@ BOOST_FIXTURE_TEST_CASE( bootseq_test, bootseq_tester ) { } ilog("."); +#warning Complete this test +/* // Set code eosio.system from eosio.bios to eosio.system set_code_abi(config::system_account_name, eosio_system_wast, eosio_system_abi); + ilog("."); // Register these genesis accts as producer account for (auto gen_acc : gen_accounts) { // BOOST_REQUIRE_EQUAL(success(), regproducer(gen_acc)); } +*/ } FC_LOG_AND_RETHROW() } diff --git a/unittests/wasm_tests.cpp b/unittests/wasm_tests.cpp index 88670ab4b762cd210e0411569152001cf89a957f..9d4228387a4f040fe91732ca19b7e63abb1bfa14 100644 --- a/unittests/wasm_tests.cpp +++ b/unittests/wasm_tests.cpp @@ -1000,10 +1000,6 @@ BOOST_FIXTURE_TEST_CASE(noop, TESTER) try { BOOST_FIXTURE_TEST_CASE(eosio_abi, TESTER) try { produce_blocks(2); - set_code(config::system_account_name, eosio_system_wast); - set_abi(config::system_account_name, eosio_system_abi); - produce_block(); - const auto& accnt = control->db().get(config::system_account_name); abi_def abi; BOOST_REQUIRE_EQUAL(abi_serializer::to_abi(accnt.abi, abi), true);