mirror of
https://github.com/restic/restic.git
synced 2025-10-09 08:11:18 +00:00
retry key loading on hash mismatch
This commit is contained in:
1
internal/cache/backend_test.go
vendored
1
internal/cache/backend_test.go
vendored
@@ -48,7 +48,6 @@ func remove(t testing.TB, be restic.Backend, h restic.Handle) {
|
||||
func randomData(n int) (restic.Handle, []byte) {
|
||||
data := test.Random(rand.Int(), n)
|
||||
id := restic.Hash(data)
|
||||
copy(id[:], data)
|
||||
h := restic.Handle{
|
||||
Type: restic.IndexFile,
|
||||
Name: id.String(),
|
||||
|
Reference in New Issue
Block a user