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

Commit4c71a6c

Browse files
committed
fix test
1 parentabdd813 commit4c71a6c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎agent/agentcontainers/api_test.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,17 @@ func TestAPI(t *testing.T) {
563563
agentcontainers.WithWatcher(watcher.NewNoop()),
564564
}
565565

566+
// Generate matching scripts for the known devcontainers
567+
// (required to extract log source ID).
568+
varscripts []codersdk.WorkspaceAgentScript
569+
fori:=rangett.knownDevcontainers {
570+
scripts=append(scripts, codersdk.WorkspaceAgentScript{
571+
ID:tt.knownDevcontainers[i].ID,
572+
LogSourceID:uuid.New(),
573+
})
574+
}
566575
iflen(tt.knownDevcontainers)>0 {
567-
apiOptions=append(apiOptions,agentcontainers.WithDevcontainers(tt.knownDevcontainers,nil))
576+
apiOptions=append(apiOptions,agentcontainers.WithDevcontainers(tt.knownDevcontainers,scripts))
568577
}
569578

570579
api:=agentcontainers.NewAPI(logger,apiOptions...)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp