Skip to content

Commit

Permalink
Fix websocket test case
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceone committed Jan 8, 2017
1 parent 5fcd7f2 commit 27a76ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/web/test_websockets.py
Expand Up @@ -83,6 +83,14 @@ def test(manager, watcher, webapp, chunksize):
assert watcher.wait("read", channel="ws")
assert client.response == "Received: Hello!"

watcher.clear()

client.fire(write("World!"), "ws")
assert watcher.wait("read", channel="ws")
assert client.response == "Received: World!"

watcher.clear()

data = "A" * (chunksize + 1)
client.fire(write(data), "ws")
assert watcher.wait("read", channel="ws")
Expand Down

0 comments on commit 27a76ea

Please sign in to comment.