MCPcopy
hub / github.com/celery/celery / test_link_error

Method test_link_error

t/integration/test_canvas.py:126–130  ·  t/integration/test_canvas.py::test_link_error.test_link_error
(self)

Source from the content-addressed store, hash-verified

124
125 @flaky
126 def test_link_error(self):
127 exception = ExpectedException(class="st">"Task expected to fail", class="st">"test")
128 result = fail.apply(args=(class="st">"test",), link_error=return_exception.s())
129 actual = result.get(timeout=TIMEOUT, propagate=False)
130 assert actual == exception
131
132 @flaky
133 def test_link_error_callback_error_callback_retries_eager(self):

Callers

nothing calls this directly

Calls 4

ExpectedExceptionClass · 0.70
applyMethod · 0.45
sMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected