aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-11-14 15:19:32 -0500
committerDeterminant <[email protected]>2018-11-14 15:19:32 -0500
commit0f341fe7f092f704e1c1952c72085eb1ebd2086a (patch)
treef730db073fa232f911e6df7e6099852a090330bb /test
parent2c1e8ec448a1039ab9a46bce4c959e6ec3cefeb8 (diff)
use ThreadCall pattern
Diffstat (limited to 'test')
-rw-r--r--test/test_network.cpp3
-rw-r--r--test/test_p2p.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/test/test_network.cpp b/test/test_network.cpp
index 061b520..d93d0ff 100644
--- a/test/test_network.cpp
+++ b/test/test_network.cpp
@@ -141,6 +141,9 @@ int main() {
alice.reg_handler(on_receive_ack);
bob.reg_handler(on_receive_ack);
+ alice.start();
+ bob.start();
+
alice.listen(alice_addr);
bob.listen(bob_addr);
diff --git a/test/test_p2p.cpp b/test/test_p2p.cpp
index 4146fd9..f52f48f 100644
--- a/test/test_p2p.cpp
+++ b/test/test_p2p.cpp
@@ -139,6 +139,9 @@ int main() {
alice.reg_handler(on_receive_ack);
bob.reg_handler(on_receive_ack);
+ alice.start();
+ bob.start();
+
alice.listen(alice_addr);
bob.listen(bob_addr);