diff options
Diffstat (limited to 'tests/main.cpp')
-rw-r--r-- | tests/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/main.cpp b/tests/main.cpp index 7bb63e2..2623884 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -17,7 +17,7 @@ int main() bool connectionFailure = false; try { - sibs::BootstrapConnection::create(sibs::Ipv4("127.0.0.1", 2222)).get(); + sibs::BootstrapConnection::connect(sibs::Ipv4("127.0.0.1", 2222)).get(); } catch(sibs::BootstrapConnectionException &e) { @@ -25,7 +25,7 @@ int main() } REQUIRE(connectionFailure); - std::unique_ptr<sibs::BootstrapConnection> connection1 = sibs::BootstrapConnection::create(sibs::Ipv4("127.0.0.1", PORT)).get(); + std::unique_ptr<sibs::BootstrapConnection> connection1 = sibs::BootstrapConnection::connect(sibs::Ipv4("127.0.0.1", PORT)).get(); bool gotData1 = false; bool gotAsdf1 = false; connection1->listen(key, [&gotData1, &gotAsdf1](const sibs::DirectConnectionPeer *peer, const void *data, const sibs::usize size) @@ -37,7 +37,7 @@ int main() return true; }); - std::unique_ptr<sibs::BootstrapConnection> connection2 = sibs::BootstrapConnection::create(sibs::Ipv4("127.0.0.1", PORT)).get(); + std::unique_ptr<sibs::BootstrapConnection> connection2 = sibs::BootstrapConnection::connect(sibs::Ipv4("127.0.0.1", PORT)).get(); bool gotData2 = false; bool gotAsdf2 = false; connection2->listen(key, [&gotData2, &gotAsdf2](const sibs::DirectConnectionPeer *peer, const void *data, const sibs::usize size) |