Skip to content

Commit 882228a

Browse files
committed
tests: bump test timeout for recursion stacktrace extract to 2s
In some loaded environments, the test may take slightly longer than 1s to extract the stacktrace. This was noticed in nixpkgs build system where the load is generally high due to high build parallelism and resource constraints. I was sometimes getting failures because the time it took was e.g. ~1.2s (less than current timeout of 1s). Disclosure: we'll probably end up disabling the test in nixpkgs anyway because we try to avoid time sensitive tests. Regardless, this bump may help someone else in a similar situation or environment. Signed-off-by: Ihar Hrachyshka <[email protected]>
1 parent bbdf789 commit 882228a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_basics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1160,5 +1160,5 @@ def recurse():
11601160
# On my machine, it takes about 100-200ms to capture the exception,
11611161
# so this limit should be generous enough.
11621162
assert (
1163-
capture_end_time - capture_start_time < 10**9
1163+
capture_end_time - capture_start_time < 20**9
11641164
), "stacktrace capture took too long, check that frame limit is set correctly"

0 commit comments

Comments
 (0)