Skip to content

Commit

Permalink
Add failure event
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacquwes committed Oct 7, 2023
1 parent 341748c commit 84446f3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/integration/integration_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ TEST(integration_tests, connect_client_to_server)

std::jthread server_thread([&]()
{
server.on_connection_attempt(
server.on_connection_failed(
[&](
pine::server& server,
std::shared_ptr<pine::server_connection> const& client
) -> async_task
{
ADD_FAILURE();
server_ready.release();
co_return;
});

server.on_connection(
[&](
pine::server& server,
std::shared_ptr<pine::server_connection> const& client
Expand Down

0 comments on commit 84446f3

Please sign in to comment.