test changes in get_global_properties() result
This commit is contained in:
parent
41795294af
commit
64a371743c
1 changed files with 23 additions and 0 deletions
|
|
@ -1175,6 +1175,29 @@ BOOST_AUTO_TEST_CASE( list_son )
|
|||
BOOST_TEST_MESSAGE("SON Vote cli wallet tests end");
|
||||
}
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_CASE( related_functions )
|
||||
{
|
||||
BOOST_TEST_MESSAGE("SON-related functions cli wallet tests begin");
|
||||
try
|
||||
{
|
||||
global_property_object gpo = con.wallet_api_ptr->get_global_properties();
|
||||
BOOST_CHECK(gpo.active_sons.size() == 0);
|
||||
|
||||
INVOKE(create_sons);
|
||||
|
||||
gpo = con.wallet_api_ptr->get_global_properties();
|
||||
BOOST_CHECK(gpo.active_sons.size() == 2);
|
||||
|
||||
} catch( fc::exception& e ) {
|
||||
BOOST_TEST_MESSAGE("SON cli wallet tests exception");
|
||||
edump((e.to_detail_string()));
|
||||
throw;
|
||||
}
|
||||
BOOST_TEST_MESSAGE("SON-related functions cli wallet tests end");
|
||||
}
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue