mirror of
https://github.com/restic/restic.git
synced 2026-10-07 19:07:12 +00:00
retry key loading on hash mismatch
This commit is contained in:
1 parent
78d2312ee9
commit
822422ef03
3 files changed
+57
-1
No files matched your search
Vendored
-1
@@ -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