Deleted Added
1import struct
2import time
3
4import pytest
5
6from conftest import skip_alert
7from unit.applications.lang.java import TestApplicationJava
8from unit.applications.websockets import TestApplicationWebsocket
9from unit.option import option
10
11
12class TestJavaWebsockets(TestApplicationJava):
13 prerequisites = {'modules': {'java': 'any'}}
14
15 ws = TestApplicationWebsocket()
16
17 def setup_method(self):
18 assert 'success' in self.conf(
19 {'http': {'websocket': {'keepalive_interval': 0}}}, 'settings'
20 ), 'clear keepalive_interval'
21
22 skip_alert(r'socket close\(\d+\) failed')
23
24 def close_connection(self, sock):
25 assert self.recvall(sock, read_timeout=0.1) == b'', 'empty soc'

--- 1375 unchanged lines hidden ---