Skip to content

Commit 1ae05fe

Browse files
johnstcnThomasK33
authored andcommitted
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. Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent ffccfb9 commit 1ae05fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/exp_mcp_test.go

Lines changed: 1 addition & 0 deletions
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)