From 47e19cdd0e8e4bcb36365b9abe641b5210e08836 Mon Sep 17 00:00:00 2001 From: Khaled Al-Hassanieh Date: Wed, 23 May 2018 17:14:13 -0400 Subject: [PATCH] Fixed eosio_msig_tests --- unittests/multisig_tests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unittests/multisig_tests.cpp b/unittests/multisig_tests.cpp index 3a3125ed0..d2044ef63 100644 --- a/unittests/multisig_tests.cpp +++ b/unittests/multisig_tests.cpp @@ -33,7 +33,7 @@ class eosio_msig_tester : public tester { public: eosio_msig_tester() { - create_accounts( { N(eosio.msig), N(alice), N(bob), N(carol) } ); + create_accounts( { N(eosio.msig), N(eosio.stake), N(eosio.ram), N(eosio.ramfee), N(alice), N(bob), N(carol) } ); produce_block(); auto trace = base_tester::push_action(config::system_account_name, N(setpriv), @@ -420,7 +420,7 @@ BOOST_FIXTURE_TEST_CASE( update_system_contract_all_approve, eosio_msig_tester ) create_currency( N(eosio.token), config::system_account_name, core_from_string("10000000000.0000") ); issue(config::system_account_name, core_from_string("1000000000.0000")); - BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"), get_balance( "eosio" ) ); + BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"), get_balance("eosio") + get_balance("eosio.ramfee") + get_balance("eosio.stake") ); set_code( config::system_account_name, eosio_system_wast ); set_abi( config::system_account_name, eosio_system_abi ); @@ -431,7 +431,7 @@ BOOST_FIXTURE_TEST_CASE( update_system_contract_all_approve, eosio_msig_tester ) create_account_with_resources( N(bob111111111), N(eosio), core_from_string("0.4500"), false ); create_account_with_resources( N(carol1111111), N(eosio), core_from_string("1.0000"), false ); - BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"), get_balance( "eosio" ) ); + BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"), get_balance("eosio") + get_balance("eosio.ramfee") + get_balance("eosio.stake") ); vector perm = { { N(alice), config::active_name }, { N(bob), config::active_name }, {N(carol), config::active_name} }; @@ -541,7 +541,7 @@ BOOST_FIXTURE_TEST_CASE( update_system_contract_major_approve, eosio_msig_tester create_account_with_resources( N(bob111111111), N(eosio), core_from_string("0.4500"), false ); create_account_with_resources( N(carol1111111), N(eosio), core_from_string("1.0000"), false ); - BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"), get_balance( "eosio" ) ); + BOOST_REQUIRE_EQUAL( core_from_string("1000000000.0000"), get_balance("eosio") + get_balance("eosio.ramfee") + get_balance("eosio.stake") ); vector perm = { { N(alice), config::active_name }, { N(bob), config::active_name }, {N(carol), config::active_name}, {N(apple), config::active_name}}; -- GitLab