From 6a617a379bc9883d015370cf9dc4320f6e0138e4 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Thu, 27 Aug 2026 23:28:33 +0200 Subject: [PATCH] protondrive: fix Go 1.27 vet warning in retry test Pass the wrapped API error through the error-typed test helper so the %w operand satisfies Go 1.27's printf analyzer without changing test behavior. --- backend/protondrive/protondrive_internal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/protondrive/protondrive_internal_test.go b/backend/protondrive/protondrive_internal_test.go index d1ef4224d..651d848e3 100644 --- a/backend/protondrive/protondrive_internal_test.go +++ b/backend/protondrive/protondrive_internal_test.go @@ -86,7 +86,7 @@ func TestShouldRetry(t *testing.T) { {"rate limit Status=429 (handled by SDK, not retried here)", ctx, apiErr(429, 0), false}, {"client error Status=400", ctx, apiErr(400, 0), false}, {"client error Status=404", ctx, apiErr(404, 0), false}, - {"wrapped API error retried via errors.As", ctx, fmt.Errorf("wrapped: %w", &proton.APIError{Status: 500}), true}, + {"wrapped API error retried via errors.As", ctx, fmt.Errorf("wrapped: %w", apiErr(500, 0)), true}, {"non-API error falls back to fserrors.ShouldRetry", ctx, errors.New("plain error"), false}, } { t.Run(tc.name, func(t *testing.T) {