diff options
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index 613cb1f5..2adcae40 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -1,6 +1,8 @@ import cStringIO from libpathod import pathod, version from netlib import tcp, http +import time + import tutils @@ -200,7 +202,8 @@ class CommonTests(tutils.DaemonTests): def test_websocket_frame(self): r = self.pathoc(["ws:/p/", "wf:b@10"], ws_read_limit=0) - assert "wsframe" in [i["type"] for i in self.d.log()] + time.sleep(0.01) + assert self.d.last_log()["type"] == "wsframe" class TestDaemon(CommonTests): |