aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/test_pathoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathod/test_pathoc.py')
-rw-r--r--test/pathod/test_pathoc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/pathod/test_pathoc.py b/test/pathod/test_pathoc.py
index 20876f2a..dc5011c0 100644
--- a/test/pathod/test_pathoc.py
+++ b/test/pathod/test_pathoc.py
@@ -154,9 +154,10 @@ class TestDaemon(PathocTestDaemon):
)
with c.connect():
c.request("ws:/")
- c.request("wf:f'wf:x100'")
- [i for i in c.wait(timeout=0, finish=False)]
- [i for i in c.wait(timeout=0)]
+ c.request("wf:f'wf'")
+ # This should read a frame and close the websocket reader
+ assert len([i for i in c.wait(timeout=5, finish=False)]) == 1
+ assert not [i for i in c.wait(timeout=0)]
def test_connect_fail(self):
to = ("foobar", 80)