forked from TrueCloudLab/restic
retry key loading on hash mismatch
This commit is contained in:
parent
78d2312ee9
commit
822422ef03
3 changed files with 57 additions and 1 deletions
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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue