From c36dc0e16a635b61d523b194875e0583c4c0be20 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 20 Mar 2019 18:50:56 -0700 Subject: [PATCH] fix unittest --- test/IXWebSocketServerTest.cpp | 4 +++- test/run.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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