@@ -188,7 +188,7 @@ func TestAPI(t *testing.T) {
188
188
ID : knownDevcontainerID2 ,
189
189
Name : "known-devcontainer-2" ,
190
190
WorkspaceFolder : "/workspace/known2" ,
191
- // No config path intentionally
191
+ // No config path intentionally.
192
192
},
193
193
}
194
194
@@ -293,7 +293,6 @@ func TestAPI(t *testing.T) {
293
293
wantStatus : http .StatusOK ,
294
294
wantCount : 3 , // 2 known + 1 runtime
295
295
verify : func (t * testing.T , devcontainers []codersdk.WorkspaceAgentDevcontainer ) {
296
- // Find and verify devcontainers by workspace folder
297
296
known1 := mustFindDevcontainerByPath (t , devcontainers , "/workspace/known1" )
298
297
known2 := mustFindDevcontainerByPath (t , devcontainers , "/workspace/known2" )
299
298
runtime1 := mustFindDevcontainerByPath (t , devcontainers , "/workspace/runtime1" )
@@ -373,7 +372,6 @@ func TestAPI(t *testing.T) {
373
372
wantStatus : http .StatusOK ,
374
373
wantCount : 2 ,
375
374
verify : func (t * testing.T , devcontainers []codersdk.WorkspaceAgentDevcontainer ) {
376
- // Find devcontainer with ID matching knownDevcontainerID2
377
375
var dc2 * codersdk.WorkspaceAgentDevcontainer
378
376
for i := range devcontainers {
379
377
if devcontainers [i ].ID == knownDevcontainerID2 {
@@ -484,7 +482,7 @@ func TestAPI(t *testing.T) {
484
482
// Verify the number of devcontainers in the response.
485
483
assert .Len (t , response .Devcontainers , tt .wantCount , "wrong number of devcontainers" )
486
484
487
- // Run custom verification if provided
485
+ // Run custom verification if provided.
488
486
if tt .verify != nil && len (response .Devcontainers ) > 0 {
489
487
tt .verify (t , response .Devcontainers )
490
488
}
0 commit comments