From b44fcf77da4f8e87d324e804c448bab79c57fad7 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 25 Dec 2016 19:28:26 -0500 Subject: [PATCH] test_server: improve debug message --- src/wormhole/test/test_server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wormhole/test/test_server.py b/src/wormhole/test/test_server.py index 383ec73..d2aaa83 100644 --- a/src/wormhole/test/test_server.py +++ b/src/wormhole/test/test_server.py @@ -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)