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

@ -52,6 +52,8 @@ namespace ix
{ {
if (messageType == ix::WebSocket_MessageType_Open) if (messageType == ix::WebSocket_MessageType_Open)
{ {
connectionState->computeId();
Logger() << "New connection"; Logger() << "New connection";
Logger() << "id: " << connectionState->getId(); Logger() << "id: " << connectionState->getId();
Logger() << "Uri: " << openInfo.uri; Logger() << "Uri: " << openInfo.uri;

View File

@ -27,7 +27,7 @@ class Command(object):
thread.join(timeout) thread.join(timeout)
if thread.is_alive(): if thread.is_alive():
print 'Command timeout, kill it: ' + self.cmd print('Command timeout, kill it: ' + self.cmd)
self.process.terminate() self.process.terminate()
thread.join() thread.join()
return False, 255 return False, 255