Fix failing son test

This commit is contained in:
serkixenos 2020-12-09 15:58:12 +01:00
parent e3ff3bf7bc
commit 29d92d94e1

View file

@ -27,6 +27,8 @@
#include <boost/test/unit_test.hpp>
#include <graphene/chain/config.hpp>
class son_test_helper
{
cli_fixture& fixture_;
@ -169,10 +171,11 @@ BOOST_AUTO_TEST_CASE( cli_update_son )
// update SON signing key
sidechain_public_keys.clear();
con.wallet_api_ptr->update_son("sonmember", "http://sonmember_updated2", "TEST6Yaq5ZNTTkMM2kBBzV5jktr8ETsniCC3bnVD7eFmegRrLXfGGG", sidechain_public_keys, true);
std::string new_key = GRAPHENE_ADDRESS_PREFIX + std::string("6Yaq5ZNTTkMM2kBBzV5jktr8ETsniCC3bnVD7eFmegRrLXfGGG");
con.wallet_api_ptr->update_son("sonmember", "http://sonmember_updated2", new_key, sidechain_public_keys, true);
son_data = con.wallet_api_ptr->get_son("sonmember");
BOOST_CHECK(son_data.url == "http://sonmember_updated2");
BOOST_CHECK(std::string(son_data.signing_key) == "TEST6Yaq5ZNTTkMM2kBBzV5jktr8ETsniCC3bnVD7eFmegRrLXfGGG");
BOOST_CHECK(std::string(son_data.signing_key) == new_key);
} catch( fc::exception& e ) {
edump((e.to_detail_string()));