Skip to content

Commit d7e6eb7

Browse files
authored
chore(cli): fix test flake when running in coder workspace (#17604)
This test was failing inside a Coder workspace due to `CODER_AGENT_TOKEN` being set.
1 parent 7a1e56b commit d7e6eb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/exp_mcp_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ func TestExpMcpServer(t *testing.T) {
158158
//nolint:tparallel,paralleltest
159159
func TestExpMcpConfigureClaudeCode(t *testing.T) {
160160
t.Run("NoReportTaskWhenNoAgentToken", func(t *testing.T) {
161+
t.Setenv("CODER_AGENT_TOKEN", "")
161162
ctx := testutil.Context(t, testutil.WaitShort)
162163
cancelCtx, cancel := context.WithCancel(ctx)
163164
t.Cleanup(cancel)

0 commit comments

Comments
 (0)