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.54k stars 388 forks source link

add timeout to tests #1551

Closed minrk closed 1 year ago

minrk commented 1 year ago

using pytest-timeout

default: 60s

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

minrk commented 1 year 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.