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"
"errors"
"log/slog"
"maps"
"slices"
"testing"
@@ -179,9 +180,7 @@ func TestDeleteIsRefusedWhileReferenced(t *testing.T) {
for _, tt := range tests {
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}}
for name, v := range tt.others {
s.versions[name] = v
}
maps.Copy(s.versions, tt.others)
e := &Engine{defs: s, log: slog.New(slog.DiscardHandler), referrers: tt.triggers}
err := e.Delete(t.Context(), "org", "triage")