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
This commit is contained in:
Mathias Fredriksson
2026-06-15 23:58:29 +01:00
committed by GitHub
parent de31c7c18e
commit b3a95be733
+4
View File
@@ -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"