Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d3681c

Browse files
committed
nowindows
1 parent5f1d7fb commit5d3681c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

‎agent/agentcontainers/api_test.go

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,6 +2074,10 @@ func TestAPI(t *testing.T) {
20742074
t.Run("IgnoreCustomization",func(t*testing.T) {
20752075
t.Parallel()
20762076

2077+
ifruntime.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+
20772081
ctx:=testutil.Context(t,testutil.WaitShort)
20782082

20792083
startTime:=time.Date(2025,1,1,12,0,0,0,time.UTC)
@@ -2196,13 +2200,7 @@ func TestAPI(t *testing.T) {
21962200
err=json.NewDecoder(rec.Body).Decode(&response)
21972201
require.NoError(t,err)
21982202

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")
22062204
exitSubAgentOnce.Do(func() {
22072205
close(exitSubAgent)
22082206
})
@@ -2212,6 +2210,12 @@ func TestAPI(t *testing.T) {
22122210
t.Fatal("timeout waiting for sub agent to exit")
22132211
}
22142212

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+
22152219
t.Log("Phase 3: Change back to ignore=true and test sub agent deletion")
22162220
fDCCLI.readConfig.Configuration.Customizations.Coder.Ignore=true
22172221
testutil.RequireSend(ctx,t,fakeSAC.deleteErrC,nil)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp