diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-04-11 12:02:22 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-04-11 12:09:52 +0200 |
commit | da66872a542e0885ebe026012d0805934fe0f5a7 (patch) | |
tree | 04ff7dcf43840494a356485a9f377aab14212e56 /tests/net_load_tests/clt.cpp | |
parent | Merge pull request #259 (diff) | |
parent | [fix] log level change. compilation: dns, tests (diff) | |
download | monero-da66872a542e0885ebe026012d0805934fe0f5a7.tar.xz |
Merge pull request #260
32c19c6 [fix] log level change. compilation: dns, tests (rfree2monero)
Diffstat (limited to 'tests/net_load_tests/clt.cpp')
-rw-r--r-- | tests/net_load_tests/clt.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/net_load_tests/clt.cpp b/tests/net_load_tests/clt.cpp index 6307f18eb..95702e1a8 100644 --- a/tests/net_load_tests/clt.cpp +++ b/tests/net_load_tests/clt.cpp @@ -186,6 +186,11 @@ namespace class net_load_test_clt : public ::testing::Test { + public: + net_load_test_clt() + : m_tcp_server(epee::net_utils::e_connection_type_RPC) // RPC disables network limit for unit tests + { + } protected: virtual void SetUp() { @@ -237,7 +242,7 @@ namespace { // Stop server test_levin_commands_handler commands_handler; - test_tcp_server tcp_server; + test_tcp_server tcp_server(epee::net_utils::e_connection_type_NET); tcp_server.get_config_object().m_pcommands_handler = &commands_handler; tcp_server.get_config_object().m_invoke_timeout = CONNECTION_TIMEOUT; |