File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -563,8 +563,17 @@ func TestAPI(t *testing.T) {
563
563
agentcontainers .WithWatcher (watcher .NewNoop ()),
564
564
}
565
565
566
+ // Generate matching scripts for the known devcontainers
567
+ // (required to extract log source ID).
568
+ var scripts []codersdk.WorkspaceAgentScript
569
+ for i := range tt .knownDevcontainers {
570
+ scripts = append (scripts , codersdk.WorkspaceAgentScript {
571
+ ID : tt .knownDevcontainers [i ].ID ,
572
+ LogSourceID : uuid .New (),
573
+ })
574
+ }
566
575
if len (tt .knownDevcontainers ) > 0 {
567
- apiOptions = append (apiOptions , agentcontainers .WithDevcontainers (tt .knownDevcontainers , nil ))
576
+ apiOptions = append (apiOptions , agentcontainers .WithDevcontainers (tt .knownDevcontainers , scripts ))
568
577
}
569
578
570
579
api := agentcontainers .NewAPI (logger , apiOptions ... )
You can’t perform that action at this time.
0 commit comments