From b3a95be73340652e08fda95f150bc05401a00ba6 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Tue, 16 Jun 2026 01:58:29 +0300 Subject: [PATCH] fix(agent/agentcontainers): skip TestAPI/Watch on Windows (#26370) The test does not inject a devcontainerCLI mock, so the updater loop calls the real devcontainer CLI with Unix paths. On Windows this fails, stalling the mock clock advancement. Refs CODAGT-608 --- agent/agentcontainers/api_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent/agentcontainers/api_test.go b/agent/agentcontainers/api_test.go index 8acc6fabd3..f567d3bc83 100644 --- a/agent/agentcontainers/api_test.go +++ b/agent/agentcontainers/api_test.go @@ -624,6 +624,10 @@ func TestAPI(t *testing.T) { t.Run("Watch", func(t *testing.T) { t.Parallel() + if runtime.GOOS == "windows" { + t.Skip("Dev Container tests are not supported on Windows (this test uses mocks but fails due to Windows paths)") + } + fakeContainer1 := fakeContainer(t, func(c *codersdk.WorkspaceAgentContainer) { c.ID = "container1" c.FriendlyName = "devcontainer1"