MCPcopy Create free account
hub / github.com/apache/thrift / cleanupTestCase

Method cleanupTestCase

lib/cpp/test/qt/TQTcpServerTest.cpp:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void TQTcpServerTest::cleanupTestCase() {
84 //first, stop the thread which holds the server
85 serverThread->quit();
86 serverThread->wait();
87 // now, it is safe to delete the server
88 server.reset();
89 // delete thread now
90 serverThread.reset();
91
92 // cleanup client
93 client.reset();
94}
95
96void TQTcpServerTest::test_communicate() {
97 client->addString("foo");

Callers

nothing calls this directly

Calls 2

waitMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected