test_server: improve debug message

This commit is contained in:
Brian Warner 2016-12-25 19:28:26 -05:00
parent a746ca726a
commit b44fcf77da

View File

@ -502,6 +502,9 @@ class WSClient(websocket.WebSocketClientProtocol):
def next_non_ack(self):
while True:
m = yield self.next_event()
if isinstance(m, tuple):
print("unexpected onClose", m)
raise AssertionError("unexpected onClose")
if m["type"] != "ack":
returnValue(m)