Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/io_test.cpp')
-rw-r--r--tests/io_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/io_test.cpp b/tests/io_test.cpp
index 2e71f7e..1272bc2 100644
--- a/tests/io_test.cpp
+++ b/tests/io_test.cpp
@@ -32,8 +32,10 @@ int main() {
});
};
- echo.on_open = [&server_callback_count](shared_ptr<WsServer::Connection> /*connection*/) {
+ echo.on_open = [&server_callback_count](shared_ptr<WsServer::Connection> connection) {
++server_callback_count;
+ assert(!connection->remote_endpoint_address().empty());
+ assert(connection->remote_endpoint_port() > 0);
};
echo.on_close = [&server_callback_count](shared_ptr<WsServer::Connection> /*connection*/, int /*status*/, const string & /*reason*/) {