mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 12:26:06 -04:00
tests: trezor tests fixes and improvements
- configurable hardforks via env vars
This commit is contained in:
parent
fe3403c8f0
commit
c97a1f79d6
4 changed files with 76 additions and 25 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue