diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-15 09:17:47 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-15 09:17:47 +0200 |
commit | e31559d3199552adbf5c57216633405923148be4 (patch) | |
tree | f7f6d5188974c0653c04b5bcc0d6ec6bcb0f5211 /tests/trezor/daemon.cpp | |
parent | Merge pull request #5396 (diff) | |
parent | device/trezor: env-configurable ports (diff) | |
download | monero-e31559d3199552adbf5c57216633405923148be4.tar.xz |
Merge pull request #5398
41901b8d device/trezor: env-configurable ports (Dusan Klinec)
c97a1f79 tests: trezor tests fixes and improvements (Dusan Klinec)
Diffstat (limited to 'tests/trezor/daemon.cpp')
-rw-r--r-- | tests/trezor/daemon.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/trezor/daemon.cpp b/tests/trezor/daemon.cpp index 5e987793a..41af93f3f 100644 --- a/tests/trezor/daemon.cpp +++ b/tests/trezor/daemon.cpp @@ -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(); |