updated unit test cases to reflect GPOS vesting and update account id's according to sons-account
This commit is contained in:
parent
1d66b859c9
commit
78c17c0ef0
2 changed files with 11 additions and 4 deletions
|
|
@ -332,6 +332,10 @@ BOOST_FIXTURE_TEST_CASE( select_top_fifteen_sons, cli_fixture )
|
|||
BOOST_TEST_MESSAGE("Voting for SONs");
|
||||
for(unsigned int i = 0; i < son_number + 1; i++)
|
||||
{
|
||||
con.wallet_api_ptr->transfer(
|
||||
"nathan", "sonaccount" + fc::to_pretty_string(i), "1000", "1.3.0", "Here are some CORE tokens for your new account", true );
|
||||
con.wallet_api_ptr->create_vesting_balance("sonaccount" + fc::to_pretty_string(i), "500", "1.3.0", vesting_balance_type::gpos, true);
|
||||
|
||||
std::string name = "sonaccount" + fc::to_pretty_string(i);
|
||||
vote_tx = con.wallet_api_ptr->vote_for_son(name, name, true, true);
|
||||
}
|
||||
|
|
@ -623,7 +627,7 @@ BOOST_FIXTURE_TEST_CASE( cli_list_active_sons, cli_fixture )
|
|||
sidechain_public_keys,
|
||||
false);
|
||||
con.wallet_api_ptr->transfer(
|
||||
"nathan", "sonaccount" + fc::to_pretty_string(i), "1000", "1.3.0", "Here are some CORE token for your new account", true );
|
||||
"nathan", "sonaccount" + fc::to_pretty_string(i), "1000", "1.3.0", "Here are some CORE tokens for your new account", true );
|
||||
con.wallet_api_ptr->create_vesting_balance("sonaccount" + fc::to_pretty_string(i), "500", "1.3.0", vesting_balance_type::gpos, true);
|
||||
}
|
||||
BOOST_CHECK(generate_maintenance_block());
|
||||
|
|
@ -697,7 +701,10 @@ BOOST_AUTO_TEST_CASE( maintenance_test )
|
|||
BOOST_TEST_MESSAGE("Voting for SONs");
|
||||
for(unsigned int i = 1; i < son_number + 1; i++)
|
||||
{
|
||||
con.wallet_api_ptr->vote_for_son("sonaccount" + fc::to_pretty_string(i), name, true, true);
|
||||
con.wallet_api_ptr->transfer(
|
||||
"nathan", "sonaccount" + fc::to_pretty_string(i), "1000", "1.3.0", "Here are some CORE tokens for your new account", true );
|
||||
con.wallet_api_ptr->create_vesting_balance("sonaccount" + fc::to_pretty_string(i), "500", "1.3.0", vesting_balance_type::gpos, true);
|
||||
con.wallet_api_ptr->vote_for_son("sonaccount" + fc::to_pretty_string(i), name, true, true);
|
||||
}
|
||||
BOOST_CHECK(generate_maintenance_block());
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ database_fixture::database_fixture()
|
|||
// add account tracking for ahplugin for special test case with track-account enabled
|
||||
if( !options.count("track-account") && boost::unit_test::framework::current_test_case().p_name.value == "track_account") {
|
||||
std::vector<std::string> track_account;
|
||||
std::string track = "\"1.2.18\"";
|
||||
std::string track = "\"1.2.19\"";
|
||||
track_account.push_back(track);
|
||||
options.insert(std::make_pair("track-account", boost::program_options::variable_value(track_account, false)));
|
||||
options.insert(std::make_pair("partial-operations", boost::program_options::variable_value(true, false)));
|
||||
|
|
@ -120,7 +120,7 @@ database_fixture::database_fixture()
|
|||
std::vector<std::string> track_account;
|
||||
std::string track = "\"1.2.0\"";
|
||||
track_account.push_back(track);
|
||||
track = "\"1.2.17\"";
|
||||
track = "\"1.2.18\"";
|
||||
track_account.push_back(track);
|
||||
options.insert(std::make_pair("track-account", boost::program_options::variable_value(track_account, false)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue