Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(tasks): expect the error type in completion signal assertions (#115768)

Alessandro Pogliaghi37d0ceb7b535
diff --git a/products/tasks/backend/tests/test_gateway_usage_api.py b/products/tasks/backend/tests/test_gateway_usage_api.py
index 7a47a8c637e9..a9ca392d7b68 100644
--- a/products/tasks/backend/tests/test_gateway_usage_api.py
+++ b/products/tasks/backend/tests/test_gateway_usage_api.py
@@ -273,4 +273,4 @@ class TestTaskRunGatewayUsageAPI(APIBaseTest):
assert response.json()["state"] == {}
assert run.state["compute_cost"] == (7 if refresh_fails else 12)
assert response.json()["updated_at"] == run.updated_at.isoformat().replace("+00:00", "Z")
- signal.assert_called_once_with(run.id, TaskRun.Status.COMPLETED, None)
+ signal.assert_called_once_with(run.id, TaskRun.Status.COMPLETED, None, None)