diff --git a/test/IXWebSocketServerTest.cpp b/test/IXWebSocketServerTest.cpp index d80b5aa2..d15498bc 100644 --- a/test/IXWebSocketServerTest.cpp +++ b/test/IXWebSocketServerTest.cpp @@ -39,7 +39,7 @@ namespace ix server.setOnConnectionCallback( [&server, &connectionId](std::shared_ptr webSocket, - std::shared_ptr connectionState) + std::shared_ptr connectionState) { webSocket->setOnMessageCallback( [webSocket, connectionState, @@ -52,6 +52,8 @@ namespace ix { if (messageType == ix::WebSocket_MessageType_Open) { + connectionState->computeId(); + Logger() << "New connection"; Logger() << "id: " << connectionState->getId(); Logger() << "Uri: " << openInfo.uri; diff --git a/test/run.py b/test/run.py index c18b5631..decdc261 100644 --- a/test/run.py +++ b/test/run.py @@ -27,7 +27,7 @@ class Command(object): thread.join(timeout) if thread.is_alive(): - print 'Command timeout, kill it: ' + self.cmd + print('Command timeout, kill it: ' + self.cmd) self.process.terminate() thread.join() return False, 255