mesh-delivery-builder: format step_test.go as gofmt writes it (issue 721; main.495's lint failed on it)

This commit is contained in:
2026-11-23 17:26:06 +01:00
parent 349fbc3a08
commit 6715389a88
@@ -588,7 +588,9 @@ func anOlderHeardEntrySupersedesNoNewerAsk(t *testing.T) {
}
mu.Lock()
defer mu.Unlock()
if !slices.ContainsFunc(journal, func(l string) bool { return strings.Contains(l, "is not of a newer revision: not superseded by it (H-A-557)") }) {
if !slices.ContainsFunc(journal, func(l string) bool {
return strings.Contains(l, "is not of a newer revision: not superseded by it (H-A-557)")
}) {
t.Errorf("the passed-over entry is not said: %v", journal)
}
}
@@ -624,7 +626,9 @@ func anOlderHeardEntryWithdrawsNoNewerBuild(t *testing.T) {
r.b.mu.Lock()
delete(r.b.builds, r.key)
r.b.mu.Unlock()
r.b.KeptRevision = func(context.Context, string, int64) (int64, map[string]string, error) { return 141, map[string]string{"m": fp1}, nil }
r.b.KeptRevision = func(context.Context, string, int64) (int64, map[string]string, error) {
return 141, map[string]string{"m": fp1}, nil
}
held.Store(142)
end := r.b.BuildStep(t.Context(), "a1", meshbuilds.StepRun{Pipeline: "main.453.m", Step: meshbuilds.StepRunStepBuild, Branch: "main", Revision: 453, Source: 141,
Entries: []meshbuilds.BuildEntry{{Module: "m", Fingerprint: fp1}}})