Testing timeout of getting results from tasks.
(self, manager)
| 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 |