refactor(runs): adopt go fix output in the workflow catalogue test (#2061)

This commit is contained in:
sam committed 2026-11-22 13:54:09 +11:00
1 parent 53719c6859
commit de3bfe296d
1 file changed
+2 -3
+2 -3
View File
@@ -4,6 +4,7 @@ import (
"context" "context"
"errors" "errors"
"log/slog" "log/slog"
"maps"
"slices" "slices"
"testing" "testing"
@@ -179,9 +180,7 @@ func TestDeleteIsRefusedWhileReferenced(t *testing.T) {
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
s := &shelf{versions: map[string][]string{"triage": {notifyDoc}}, drafts: map[string]bool{}, active: map[string]int{"triage": tt.active}} s := &shelf{versions: map[string][]string{"triage": {notifyDoc}}, drafts: map[string]bool{}, active: map[string]int{"triage": tt.active}}
for name, v := range tt.others { maps.Copy(s.versions, tt.others)
s.versions[name] = v
}
e := &Engine{defs: s, log: slog.New(slog.DiscardHandler), referrers: tt.triggers} e := &Engine{defs: s, log: slog.New(slog.DiscardHandler), referrers: tt.triggers}
err := e.Delete(t.Context(), "org", "triage") err := e.Delete(t.Context(), "org", "triage")