MCPcopy Create free account
hub / github.com/celery/celery / test_timeout

Method test_timeout

t/integration/test_tasks.py:254–258  ·  view source on GitHub ↗

Testing timeout of getting results from tasks.

(self, manager)

Source from the content-addressed store, hash-verified

252
253 @flaky
254 def test_timeout(self, manager):
255 """Testing timeout of getting results from tasks."""
256 result = sleeping.delay(10)
257 with pytest.raises(celery.exceptions.TimeoutError):
258 result.get(timeout=5)
259
260 @pytest.mark.timeout(60)
261 @flaky

Callers

nothing calls this directly

Calls 3

raisesMethod · 0.80
delayMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected