From 6715389a88a7cc3b8419485b6677dc5813a42c44 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 23 Nov 2026 17:26:06 +0100 Subject: [PATCH] mesh-delivery-builder: format step_test.go as gofmt writes it (issue 721; main.495's lint failed on it) --- modules/mesh-delivery-builder/internal/build/step_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/mesh-delivery-builder/internal/build/step_test.go b/modules/mesh-delivery-builder/internal/build/step_test.go index c0ab5bc6e..4294b85cd 100644 --- a/modules/mesh-delivery-builder/internal/build/step_test.go +++ b/modules/mesh-delivery-builder/internal/build/step_test.go @@ -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}}}) -- 2.54.0