summaryrefslogtreecommitdiffstats
path: root/src/gtest/rpc_test.cpp
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-10-08 10:23:33 +0200
committerimarom <imarom@cisco.com>2015-10-08 10:23:56 +0200
commit09c9d77dc2f5a89924bd27226727220801a5df13 (patch)
tree3db008dbcc1aba670e2ec691051082949d9c6492 /src/gtest/rpc_test.cpp
parent74b648a86c16933680b03a736afe3f0305b4f6d2 (diff)
fixed some bugs in the async server
also added affinity to the stateless main object
Diffstat (limited to 'src/gtest/rpc_test.cpp')
-rw-r--r--src/gtest/rpc_test.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gtest/rpc_test.cpp b/src/gtest/rpc_test.cpp
index 4084b664..250d5342 100644
--- a/src/gtest/rpc_test.cpp
+++ b/src/gtest/rpc_test.cpp
@@ -42,12 +42,6 @@ protected:
m_verbose = false;
- TrexRpcServerConfig req_resp_cfg = TrexRpcServerConfig(TrexRpcServerConfig::RPC_PROT_TCP, 5050);
- TrexRpcServerConfig async_cfg = TrexRpcServerConfig(TrexRpcServerConfig::RPC_PROT_TCP, 5051);
-
- m_rpc = new TrexRpcServer(req_resp_cfg, async_cfg);
- m_rpc->start();
-
m_context = zmq_ctx_new ();
m_socket = zmq_socket (m_context, ZMQ_REQ);
zmq_connect (m_socket, "tcp://localhost:5050");
@@ -55,9 +49,6 @@ protected:
}
virtual void TearDown() {
- m_rpc->stop();
-
- delete m_rpc;
zmq_close(m_socket);
zmq_term(m_context);
}
@@ -658,3 +649,4 @@ TEST_F(RpcTestOwned, start_stop_traffic) {
send_request(request, response);
EXPECT_EQ(response["result"], "ACK");
}
+