2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 12:55:18 +00:00

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

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()