summaryrefslogtreecommitdiff
path: root/crocoite/test_devtools.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-11-08 17:12:16 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-11-08 17:12:16 +0100
commit000c8d1f471320dfee050159cb503f74163e9d71 (patch)
treeafbbe99158fb8eff60285ff6cdbbd94bbebebe2e /crocoite/test_devtools.py
parentaeab124ac9f1e3e88f6a8ae246c90b8094e94223 (diff)
downloadcrocoite-000c8d1f471320dfee050159cb503f74163e9d71.tar.gz
crocoite-000c8d1f471320dfee050159cb503f74163e9d71.tar.bz2
crocoite-000c8d1f471320dfee050159cb503f74163e9d71.zip
devtools: Disable websocket pings to Chrome
Chrome does not like that.
Diffstat (limited to 'crocoite/test_devtools.py')
-rw-r--r--crocoite/test_devtools.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/crocoite/test_devtools.py b/crocoite/test_devtools.py
index a6eeda2..4ffbbf8 100644
--- a/crocoite/test_devtools.py
+++ b/crocoite/test_devtools.py
@@ -151,3 +151,13 @@ def test_tab_function_hash (tab):
d = {tab.Network.enable: 1, tab.Network.disable: 2, tab.Page: 3, tab.Page.enable: 4}
assert len (d) == 4
+@pytest.mark.asyncio
+async def test_ws_ping(tab):
+ """
+ Chrome does not like websocket pings and closes the connection if it
+ receives one. Not sure why.
+ """
+ with pytest.raises (Crashed):
+ await tab.ws.ping ()
+ await tab.Browser.getVersion ()
+