Skip to content

Commit 1118986

Browse files
reduce admin test timeouts
1 parent e59acf1 commit 1118986

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/async/test_admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def with_instrumented_server(auth=False, **ikwargs):
2121
def decorator(f):
2222
@wraps(f)
2323
def wrapped(self, *args, **kwargs):
24-
sio = socketio.AsyncServer(async_mode='asgi')
24+
sio = socketio.AsyncServer(async_mode='asgi', ping_interval=10,
25+
ping_timeout=10)
2526

2627
@sio.event
2728
async def enter_room(sid, data):

tests/common/test_admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def with_instrumented_server(auth=False, **ikwargs):
1818
def decorator(f):
1919
@wraps(f)
2020
def wrapped(self, *args, **kwargs):
21-
sio = socketio.Server(async_mode='threading')
21+
sio = socketio.Server(async_mode='threading', ping_interval=10,
22+
ping_timeout=10)
2223

2324
@sio.event
2425
def enter_room(sid, data):

0 commit comments

Comments
 (0)