aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-06-23 02:00:19 -0400
committerDeterminant <ted.sybil@gmail.com>2019-06-23 02:00:19 -0400
commit13e2643356bfcdeffd9f6e854f07ee68f29dc23b (patch)
tree8fae57e59a8a82676ef17d321b03cf4525933b87 /test
parentda9410b41cf56340fd4a3e5148df704c9c0e139c (diff)
get rid of `self()` and `release_self()`; fix hidden bugs
Diffstat (limited to 'test')
-rw-r--r--test/bench_network.cpp1
-rw-r--r--test/bench_network_tls.cpp1
-rw-r--r--test/test_msgnet.cpp4
3 files changed, 2 insertions, 4 deletions
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();};