From 13e2643356bfcdeffd9f6e854f07ee68f29dc23b Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 23 Jun 2019 02:00:19 -0400 Subject: get rid of `self()` and `release_self()`; fix hidden bugs --- test/bench_network.cpp | 1 - test/bench_network_tls.cpp | 1 - test/test_msgnet.cpp | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/bench_network.cpp b/test/bench_network.cpp index f8d3070..64e53c2 100644 --- a/test/bench_network.cpp +++ b/test/bench_network.cpp @@ -146,7 +146,6 @@ int main() { try { tec.dispatch(); } catch (std::exception &) {} - SALTICIDAE_LOG_INFO("thread exiting"); }); auto shutdown = [&](int) { tcall->async_call([&](salticidae::ThreadCall::Handle &) { diff --git a/test/bench_network_tls.cpp b/test/bench_network_tls.cpp index 1143877..cb466ad 100644 --- a/test/bench_network_tls.cpp +++ b/test/bench_network_tls.cpp @@ -150,7 +150,6 @@ int main() { try { tec.dispatch(); } catch (std::exception &) {} - SALTICIDAE_LOG_INFO("thread exiting"); }); auto shutdown = [&](int) { tcall->async_call([&](salticidae::ThreadCall::Handle &) { diff --git a/test/test_msgnet.cpp b/test/test_msgnet.cpp index 7635af8..f6dbe1b 100644 --- a/test/test_msgnet.cpp +++ b/test/test_msgnet.cpp @@ -151,8 +151,8 @@ int main() { bob.listen(bob_addr); /* try to connect once */ - alice.connect(bob_addr); - bob.connect(alice_addr); + alice.connect(bob_addr, false); + bob.connect(alice_addr, false); /* the main loop can be shutdown by ctrl-c or kill */ auto shutdown = [&](int) {ec.stop();}; -- cgit v1.2.3-70-g09d2