We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8278f31 commit 8fe99b0Copy full SHA for 8fe99b0
1 file changed
tests/handlers/test_worker_lock.py
@@ -69,8 +69,11 @@ def test_lock_contention(self) -> None:
69
f"Adjusting test_lock_contention: timeout={timeout_seconds}s"
70
)
71
else:
72
- # Settings for other architectures
73
- timeout_seconds = 5
+ # Settings for other architectures. The 5 seconds originally given to this
+ # test was insufficient when under load. Sometimes it would fail on CI. For
74
+ # lack of a better/reliable Twisted mechanism option, this uses signal which
75
+ # watches wallclock time instead of Twisted's simulated time.
76
+ timeout_seconds = 15
77
# It takes around 0.5s on a 5+ years old laptop
78
with test_timeout(timeout_seconds): # Use the dynamically set timeout
79
d = self._take_locks(
0 commit comments