@@ -2074,6 +2074,10 @@ func TestAPI(t *testing.T) {
2074
2074
t .Run ("IgnoreCustomization" ,func (t * testing.T ) {
2075
2075
t .Parallel ()
2076
2076
2077
+ if runtime .GOOS == "windows" {
2078
+ t .Skip ("Dev Container tests are not supported on Windows (this test uses mocks but fails due to Windows paths)" )
2079
+ }
2080
+
2077
2081
ctx := testutil .Context (t ,testutil .WaitShort )
2078
2082
2079
2083
startTime := time .Date (2025 ,1 ,1 ,12 ,0 ,0 ,0 ,time .UTC )
@@ -2196,13 +2200,7 @@ func TestAPI(t *testing.T) {
2196
2200
err = json .NewDecoder (rec .Body ).Decode (& response )
2197
2201
require .NoError (t ,err )
2198
2202
2199
- assert .Len (t ,response .Devcontainers ,1 ,"devcontainer should be in response when ignore=false" )
2200
- assert .Len (t ,response .Containers ,1 ,"regular container should still be listed" )
2201
- assert .Equal (t ,"/workspace/project" ,response .Devcontainers [0 ].WorkspaceFolder )
2202
- assert .Len (t ,fakeSAC .created ,1 ,"sub agent should be created when ignore=false" )
2203
- createdAgentID := fakeSAC .created [0 ].ID
2204
-
2205
- t .Log ("Phase 2: Done, waiting for sub agent to exit" )
2203
+ t .Log ("Phase 2: Cont, waiting for sub agent to exit" )
2206
2204
exitSubAgentOnce .Do (func () {
2207
2205
close (exitSubAgent )
2208
2206
})
@@ -2212,6 +2210,12 @@ func TestAPI(t *testing.T) {
2212
2210
t .Fatal ("timeout waiting for sub agent to exit" )
2213
2211
}
2214
2212
2213
+ assert .Len (t ,response .Devcontainers ,1 ,"devcontainer should be in response when ignore=false" )
2214
+ assert .Len (t ,response .Containers ,1 ,"regular container should still be listed" )
2215
+ assert .Equal (t ,"/workspace/project" ,response .Devcontainers [0 ].WorkspaceFolder )
2216
+ require .Len (t ,fakeSAC .created ,1 ,"sub agent should be created when ignore=false" )
2217
+ createdAgentID := fakeSAC .created [0 ].ID
2218
+
2215
2219
t .Log ("Phase 3: Change back to ignore=true and test sub agent deletion" )
2216
2220
fDCCLI .readConfig .Configuration .Customizations .Coder .Ignore = true
2217
2221
testutil .RequireSend (ctx ,t ,fakeSAC .deleteErrC ,nil )