jupyterhub / binderhub

Run your code in the cloud, with technology so advanced, it feels like magic!
https://binderhub.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.56k stars 390 forks source link

add timeout to tests #1551

Closed minrk closed 2 years ago

minrk commented 2 years ago

using pytest-timeout

default: 60s

can be overridden per test with @pytest.mark.timeout

minrk commented 2 years ago

Because this doesn't fix the hang (#1550), we should see individual tests fail with timeouts instead of the whole thing hanging. If there are enough tests that use the full timeout, it'll still exhaust the limit and get cancelled.