Merge pull request 'mesh-delivery-builder: format step_test.go as gofmt writes it (issue 721)' (#358) from fix/builder-gofmt into main

This commit was merged in pull request #358.
This commit is contained in:
2026-11-23 16:26:35 +00:00
@@ -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}}})