From 7c3d21e31f83c0f6ba7e7f16a8626018746714ea Mon Sep 17 00:00:00 2001 From: sowle Date: Sat, 13 Jul 2024 00:31:49 +0200 Subject: [PATCH] coretests: minor fixes (gcc) --- tests/core_tests/wallet_tests_basic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/core_tests/wallet_tests_basic.h b/tests/core_tests/wallet_tests_basic.h index 72fa6fc5..6515b4a7 100644 --- a/tests/core_tests/wallet_tests_basic.h +++ b/tests/core_tests/wallet_tests_basic.h @@ -36,7 +36,7 @@ struct wallet_test : virtual public test_chain_unit_enchanced { m_core_proxy = std::make_shared(); m_core_proxy->set_connectivity(100, 1); - CHECK_AND_ASSERT_MES(m_core_proxy->set_connection_addr("127.0.0.1:33777"), false, ""); + CHECK_AND_ASSERT_THROW_MES(m_core_proxy->set_connection_addr("127.0.0.1:33777"), "set_connection_addr failed"); if (!m_core_proxy->check_connection()) { // if there's not http rpc core server yet, create one @@ -48,7 +48,7 @@ struct wallet_test : virtual public test_chain_unit_enchanced m_http_rpc_server = std::make_shared(c, vm); } m_core_proxy->set_connectivity(30000, 1); - CHECK_AND_ASSERT_MES(m_core_proxy->check_connection(), false, "no connection"); + CHECK_AND_ASSERT_THROW_MES(m_core_proxy->check_connection(), "m_core_proxy: no connection"); } std::shared_ptr w(new wallet_t); @@ -118,7 +118,7 @@ protected: std::shared_ptr init_playtime_test_wallet(const std::vector& events, currency::core& c, size_t account_index) const; std::shared_ptr init_playtime_test_wallet(const std::vector& events, currency::core& c, const currency::account_base& acc) const; - std::shared_ptr wallet_test::init_playtime_test_wallet_with_true_http_rpc(const std::vector& events, currency::core& c, size_t account_index) const; + std::shared_ptr init_playtime_test_wallet_with_true_http_rpc(const std::vector& events, currency::core& c, size_t account_index) const; mutable std::vector m_accounts; mutable test_generator generator;