From 8cdd3af59d1f33f94f9af21ff49772d7721b91ea Mon Sep 17 00:00:00 2001 From: gladcow Date: Fri, 21 Feb 2020 14:54:23 +0300 Subject: [PATCH] test to reproduce error in list_active_sons after delete_son --- tests/cli/son.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/cli/son.cpp b/tests/cli/son.cpp index d71ac4c8..7915c71e 100644 --- a/tests/cli/son.cpp +++ b/tests/cli/son.cpp @@ -650,6 +650,9 @@ BOOST_FIXTURE_TEST_CASE( cli_list_active_sons, cli_fixture ) BOOST_CHECK(active_sons.find(name) != active_sons.end()); } + // check list_active_son after SON deletion + con.wallet_api_ptr->delete_son("sonaccount1", true); + BOOST_CHECK_NO_THROW(con.wallet_api_ptr->list_active_sons()); } catch( fc::exception& e ) { BOOST_TEST_MESSAGE("SON cli wallet tests exception"); edump((e.to_detail_string()));