Merge pull request #2813 from greatroar/encrypt-benchmark

Fix repository_test.BenchmarkSaveAndEncrypt
This commit is contained in:
MichaelEischer 2020-07-05 17:52:10 +02:00 committed by GitHub
commit 2c72924ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -107,8 +107,7 @@ func BenchmarkSaveAndEncrypt(t *testing.B) {
t.SetBytes(int64(size))
for i := 0; i < t.N; i++ {
// save
_, _, err = repo.SaveBlob(context.TODO(), restic.DataBlob, data, id, false)
_, _, err = repo.SaveBlob(context.TODO(), restic.DataBlob, data, id, true)
rtest.OK(t, err)
}
}