repository: Fix benchmarkSaveAndEncrypt

This commit is contained in:
greatroar 2022-10-25 17:21:24 +02:00 committed by Michael Eischer
parent f8910bc4ff
commit 137f0bc944
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ func benchmarkSaveAndEncrypt(t *testing.B, version uint) {
rtest.OK(t, err)
id := restic.ID(sha256.Sum256(data))
var wg errgroup.Group
repo.StartPackUploader(context.Background(), &wg)
t.ReportAllocs()
t.ResetTimer()