From b4be15a7d9c68b8855db23395bb8e75fa21bd66e Mon Sep 17 00:00:00 2001 From: Nicolai Scheer <5212218+nscheer@users.noreply.github.com> Date: Sun, 18 Oct 2026 15:36:23 +0200 Subject: [PATCH] cmd/restic: fix repair snapshots test on 32-bit platforms (#22098) --- cmd/restic/cmd_repair_snapshots_integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_repair_snapshots_integration_test.go b/cmd/restic/cmd_repair_snapshots_integration_test.go index c75af6e18..70855670b 100644 --- a/cmd/restic/cmd_repair_snapshots_integration_test.go +++ b/cmd/restic/cmd_repair_snapshots_integration_test.go @@ -157,7 +157,7 @@ func TestRepairSnapshotsBrokenSnapshots(t *testing.T) { // create some file with a correct sha256 name in snapshots/, will fail with // failed to load snapshot abcd1234: ciphertext verification failed - contents := rtest.Random(1234567890123, 42) + contents := rtest.Random(1234567890, 42) sha256Contents := sha256.Sum256(contents) target := hex.EncodeToString(sha256Contents[:]) rtest.OK(t, os.WriteFile(filepath.Join(env.repo, "snapshots", target), contents, 0o600))