mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 23:26:44 -08:00
tests: trezor tests fixes and improvements
- configurable hardforks via env vars
This commit is contained in:
@@ -101,6 +101,9 @@ void mock_daemon::load_params(boost::program_options::variables_map const & vm)
|
||||
|
||||
mock_daemon::~mock_daemon()
|
||||
{
|
||||
if(m_http_client.is_connected())
|
||||
m_http_client.disconnect();
|
||||
|
||||
if (!m_terminated)
|
||||
{
|
||||
try
|
||||
@@ -134,11 +137,14 @@ void mock_daemon::init()
|
||||
if(m_http_client.is_connected())
|
||||
m_http_client.disconnect();
|
||||
|
||||
CHECK_AND_ASSERT_THROW_MES(m_http_client.set_server(rpc_addr(), boost::none), "RPC client init fail");
|
||||
CHECK_AND_ASSERT_THROW_MES(m_http_client.set_server(rpc_addr(), boost::none, epee::net_utils::ssl_support_t::e_ssl_support_disabled), "RPC client init fail");
|
||||
}
|
||||
|
||||
void mock_daemon::deinit()
|
||||
{
|
||||
if(m_http_client.is_connected())
|
||||
m_http_client.disconnect();
|
||||
|
||||
try
|
||||
{
|
||||
m_rpc_server.deinit();
|
||||
|
||||
Reference in New Issue
Block a user