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

Method test_security_task_done

t/integration/test_security.py:109–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107
108 @pytest.mark.xfail(reason="Issue #5269")
109 def test_security_task_done(self):
110 t1 = add.apply_async((1, 1))
111 try:
112 result = t1.get(timeout=10) # redis backend will timeout
113 assert result == 2
114 except (socket.timeout, TimeoutError) as e:
115 pytest.fail(
116 f"Timed out waiting for task result. Task was likely dropped by "
117 f"worker due to security misconfig. Exception details: {e}"
118 )

Callers

nothing calls this directly

Calls 3

apply_asyncMethod · 0.45
getMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected