mirror of
https://github.com/restic/restic.git
synced 2024-12-23 08:16:36 +00:00
Merge pull request #2813 from greatroar/encrypt-benchmark
Fix repository_test.BenchmarkSaveAndEncrypt
This commit is contained in:
commit
2c72924ffb
1 changed files with 1 additions and 2 deletions
|
@ -107,8 +107,7 @@ func BenchmarkSaveAndEncrypt(t *testing.B) {
|
||||||
t.SetBytes(int64(size))
|
t.SetBytes(int64(size))
|
||||||
|
|
||||||
for i := 0; i < t.N; i++ {
|
for i := 0; i < t.N; i++ {
|
||||||
// save
|
_, _, err = repo.SaveBlob(context.TODO(), restic.DataBlob, data, id, true)
|
||||||
_, _, err = repo.SaveBlob(context.TODO(), restic.DataBlob, data, id, false)
|
|
||||||
rtest.OK(t, err)
|
rtest.OK(t, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue