From 1aab1aa6578578d1f4294682e00999e2bf0b2ce4 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 29 Apr 2025 15:31:02 +0100 Subject: [PATCH] chore(cli): fix test flake when running in coder workspace --- cli/exp_mcp_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/exp_mcp_test.go b/cli/exp_mcp_test.go index 35676cd81de91..8d1b2d8b89146 100644 --- a/cli/exp_mcp_test.go +++ b/cli/exp_mcp_test.go @@ -148,6 +148,7 @@ func TestExpMcpServer(t *testing.T) { //nolint:tparallel,paralleltest func TestExpMcpConfigureClaudeCode(t *testing.T) { t.Run("NoReportTaskWhenNoAgentToken", func(t *testing.T) { + t.Setenv("CODER_AGENT_TOKEN", "") ctx := testutil.Context(t, testutil.WaitShort) cancelCtx, cancel := context.WithCancel(ctx) t.Cleanup(cancel)