提交 44dc0640 编写于 作者: A arhag

fix auth_tests/linkauth_special

上级 38c05b84
......@@ -31,8 +31,8 @@ add_dependencies(unit_test asserter test_api test_api_mem test_api_db test_api_m
#Manually run unit_test for all supported runtimes
#To run unit_test with all log from blockchain displayed, put --verbose after --, i.e. unit_test -- --verbose
add_test(NAME unit_test_binaryen COMMAND unit_test -t \!auth_tests/linkauth_special -t \!eosio_system_tests/* -t \!delay_tests/* --report_level=detailed --color_output -- --binaryen)
add_test(NAME unit_test_wavm COMMAND unit_test -t \!auth_tests/linkauth_special -t \!eosio_system_tests/* -t \!delay_tests/* --report_level=detailed --color_output --catch_system_errors=no -- --wavm)
add_test(NAME unit_test_binaryen COMMAND unit_test -t \!eosio_system_tests/* -t \!delay_tests/* --report_level=detailed --color_output -- --binaryen)
add_test(NAME unit_test_wavm COMMAND unit_test -t \!eosio_system_tests/* -t \!delay_tests/* --report_level=detailed --color_output --catch_system_errors=no -- --wavm)
if(ENABLE_COVERAGE_TESTING)
......
......@@ -9,8 +9,7 @@
#include <eosio/testing/tester_network.hpp>
#include <eosio/chain/producer_object.hpp>
#include <eosio.system/eosio.system.wast.hpp>
#include <eosio.system/eosio.system.abi.hpp>
#ifdef NON_VALIDATING_TEST
#define TESTER tester
#else
......@@ -459,8 +458,6 @@ BOOST_AUTO_TEST_CASE( linkauth_special ) { try {
const auto& tester_account = N(tester);
std::vector<transaction_id_type> ids;
chain.set_code(config::system_account_name, eosio_system_wast);
chain.set_abi(config::system_account_name, eosio_system_abi);
chain.produce_blocks();
chain.create_account(N(currency));
......@@ -486,7 +483,7 @@ BOOST_AUTO_TEST_CASE( linkauth_special ) { try {
("requirement", "first")),
action_validate_exception,
[] (const action_validate_exception &ex)->bool {
BOOST_REQUIRE_EQUAL(std::string("message validation exception"), ex.what());
BOOST_REQUIRE_EQUAL(std::string("action exception"), ex.what());
return true;
});
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册