From 0f341fe7f092f704e1c1952c72085eb1ebd2086a Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 14 Nov 2018 15:19:32 -0500 Subject: use ThreadCall pattern --- test/test_network.cpp | 3 +++ test/test_p2p.cpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'test') 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); -- cgit v1.2.3-70-g09d2