oficina / estilo Public

sky: name goldens by the exact version (review nit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev f03a13f622082443bb3a4e334b48b1bc13701980 parent 7a1a376
1 file changed, +2 −1
  • sky/sky_test.go +2 −1

CI passed — run details

CI log
=== modcache ===
all modules verified
=== vet ===
CGO_ENABLED=0 go vet ./...
=== fmt ===
=== build ===
CGO_ENABLED=0 go build -buildvcs=false ./...
=== go-test ===
CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/estilo.git/base	0.004s
ok  	amadan.net/oficina/estilo.git/brand	0.002s
ok  	amadan.net/oficina/estilo.git/callui	0.003s
ok  	amadan.net/oficina/estilo.git/chrome	0.159s
?   	amadan.net/oficina/estilo.git/cmd/oficina-notices	[no test files]
ok  	amadan.net/oficina/estilo.git/credits	0.006s
ok  	amadan.net/oficina/estilo.git/credits/catalog	0.006s
ok  	amadan.net/oficina/estilo.git/homeconnect	0.006s
ok  	amadan.net/oficina/estilo.git/internal/lint	0.005s
?   	amadan.net/oficina/estilo.git/internal/tokencheck	[no test files]
ok  	amadan.net/oficina/estilo.git/menu	0.008s
ok  	amadan.net/oficina/estilo.git/savestatus	0.073s
ok  	amadan.net/oficina/estilo.git/sky	0.008s
ok  	amadan.net/oficina/estilo.git/theme	0.007s
diff --git a/sky/sky_test.go b/sky/sky_test.go
index 62fdd18..af37218 100644
--- a/sky/sky_test.go
+++ b/sky/sky_test.go
@@ -9,6 +9,7 @@ import (
"net/http"
"net/http/httptest"
"os"
+ pathpkg "path"
"path/filepath"
"strings"
"testing"
@@ -125,7 +126,7 @@ var update = flag.Bool("update", false, "rewrite sky/testdata goldens (and bump
// hold each file for a year under its versioned URL.
func TestSkyGoldens(t *testing.T) {
for file, body := range layers(ID("golden")) {
- path := filepath.Join("testdata", strings.TrimPrefix(Prefix, "/static/estilo/sky/")[:2]+"-"+file)
+ path := filepath.Join("testdata", pathpkg.Base(Prefix)+"-"+file)
if *update {
if err := os.WriteFile(path, []byte(body), 0o644); err != nil {
t.Fatal(err)