Use GLogger instead of broken memgraph Logger.
Summary: http://rpg.ifi.uzh.ch/docs/glog.html Second phase before tests complete. Delete logging test. Finish relase loging. Reviewers: mislav.bradac, teon.banek, buda Reviewed By: teon.banek Subscribers: buda, pullbot Differential Revision: https://phabricator.memgraph.io/D500
This commit is contained in:
@@ -44,8 +44,8 @@ TEST(Network, SessionLeak) {
|
||||
|
||||
int testlen = 3000;
|
||||
for (int i = 0; i < N; ++i) {
|
||||
clients.push_back(
|
||||
std::thread(client_run, i, interface, ep.port_str(), data, testlen, testlen));
|
||||
clients.push_back(std::thread(client_run, i, interface, ep.port_str(), data,
|
||||
testlen, testlen));
|
||||
std::this_thread::sleep_for(10ms);
|
||||
}
|
||||
|
||||
@@ -62,8 +62,7 @@ TEST(Network, SessionLeak) {
|
||||
// run with "valgrind --leak-check=full ./network_session_leak" to check for
|
||||
// memory leaks
|
||||
int main(int argc, char **argv) {
|
||||
logging::init_sync();
|
||||
logging::log->pipe(std::make_unique<Stdout>());
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user