mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user