fix unittest

This commit is contained in:
Benjamin Sergeant 2019-03-20 18:50:56 -07:00
parent 7e45659377
commit c36dc0e16a
2 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,7 @@ namespace ix
server.setOnConnectionCallback(
[&server, &connectionId](std::shared_ptr<ix::WebSocket> webSocket,
std::shared_ptr<ConnectionState> connectionState)
std::shared_ptr<ConnectionState> 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;

View File

@ -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