From 94d5987ac6a512c33fbebc9e673c474e16110d48 Mon Sep 17 00:00:00 2001 From: Marius Mutu Date: Thu, 1 Oct 2026 18:01:37 +0000 Subject: [PATCH] test(dashboard): enable DASHBOARD_AUTH in SSE cookie test so it can't hang Auth is off by default; without it the stream opens and the test never returns, blocking the full suite at ~17%. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014y1sJNe6mkWwFMwkWmCg8J --- tests/test_dashboard_projects_endpoint.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_dashboard_projects_endpoint.py b/tests/test_dashboard_projects_endpoint.py index 23270d5..090c142 100644 --- a/tests/test_dashboard_projects_endpoint.py +++ b/tests/test_dashboard_projects_endpoint.py @@ -584,8 +584,10 @@ class TestPlanningEndpoints: class TestSseAuth: - def test_sse_stream_requires_cookie(self, stub): - # No Cookie header → handler short-circuits with 401. + def test_sse_stream_requires_cookie(self, stub, monkeypatch): + # Auth is off by default (tailnet-only); without it the stream opens + # and never returns. No Cookie header → handler short-circuits with 401. + monkeypatch.setenv("DASHBOARD_AUTH", "on") stub.path = "/api/projects/stream" stub.command = "GET" stub.handle_projects_stream()