cmd/restic: fix repair snapshots test on 32-bit platforms (#22098)

This commit is contained in:
Nicolai Scheer
2026-10-18 13:36:23 +00:00
committed by GitHub
parent 885e6b6e71
commit b4be15a7d9
@@ -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))