ci test finish

Hee Sung Son committed Apr 7, 2026 at 21:03 UTC f962b5a49e2d639303c7feadbb10da3689475b67
2 files changed +3 -2
portal/server.go
+1 -1
@@ -334,7 +334,7 @@ func (s *Server) LeaseSnapshots() []types.Lease {
334 continue
335 }
336 if snap.Metadata.Thumbnail == "" && s.thumbnails != nil && s.thumbnails.Has(snap.Hostname) {
337 - snap.Lease.Metadata.Thumbnail = types.PathThumbnailPrefix + snap.Hostname
337 + snap.Metadata.Thumbnail = types.PathThumbnailPrefix + snap.Hostname
338 }
339 out = append(out, snap.Lease)
340 }
portal/thumbnail.go
+2 -1
@@ -1,6 +1,7 @@
1 package portal
2
3 import (
4 + "context"
5 "encoding/json"
6 "fmt"
7 "io"
@@ -143,7 +144,7 @@ func (ts *thumbnailService) resolveCDPWebSocketURL() (string, error) {
144 return "", fmt.Errorf("parse headless shell URL: %w", err)
145 }
146
146 - req, err := http.NewRequest(http.MethodGet, fmt.Sprintf("http://%s/json/version", parsed.Host), nil)
147 + req, err := http.NewRequestWithContext(context.Background(), http.MethodGet, fmt.Sprintf("http://%s/json/version", parsed.Host), nil)
148 if err != nil {
149 return "", fmt.Errorf("build /json/version request: %w", err)
150 }