(self)
| 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 | ) |
nothing calls this directly
no test coverage detected