Skip to content

Commit

Permalink
test: allow WEBSOCKETS_TESTS_TIMEOUT_FACTOR to be float
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt authored and aaugustin committed Oct 1, 2023
1 parent 1b10ca1 commit c9eefae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# Unit for timeouts. May be increased on slow machines by setting the
# WEBSOCKETS_TESTS_TIMEOUT_FACTOR environment variable.
MS = 0.001 * int(os.environ.get("WEBSOCKETS_TESTS_TIMEOUT_FACTOR", "1"))
MS = 0.001 * float(os.environ.get("WEBSOCKETS_TESTS_TIMEOUT_FACTOR", "1"))

# PyPy has a performance penalty for this test suite.
if platform.python_implementation() == "PyPy": # pragma: no cover
Expand Down

0 comments on commit c9eefae

Please sign in to comment.