Skip to content
Permalink
Browse files

Fix websocket test case

  • Loading branch information
spaceone committed Jan 8, 2017
1 parent 5fcd7f2 commit 27a76ea15f7ba8c5609bc466ec8d9b800f9f84a5
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/web/test_websockets.py
@@ -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")

0 comments on commit 27a76ea

Please sign in to comment.
You can’t perform that action at this time.