Skip to content

Commit e35c15a

Browse files
committed
Reduce MS for situations with performance penalties.
Nowadays it's tuned with WEBSOCKETS_TESTS_TIMEOUT_FACTOR.
1 parent d2120de commit e35c15a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545

4646
# PyPy has a performance penalty for this test suite.
4747
if platform.python_implementation() == "PyPy": # pragma: no cover
48-
MS *= 5
48+
MS *= 2
4949

50-
# asyncio's debug mode has a 10x performance penalty for this test suite.
50+
# asyncio's debug mode has a performance penalty for this test suite.
5151
if os.environ.get("PYTHONASYNCIODEBUG"): # pragma: no cover
52-
MS *= 10
52+
MS *= 2
5353

5454
# Ensure that timeouts are larger than the clock's resolution (for Windows).
5555
MS = max(MS, 2.5 * time.get_clock_info("monotonic").resolution)

0 commit comments

Comments
 (0)