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)