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:
parent
f8910bc4ff
commit
137f0bc944
@ -127,6 +127,8 @@ func benchmarkSaveAndEncrypt(t *testing.B, version uint) {
|
|||||||
rtest.OK(t, err)
|
rtest.OK(t, err)
|
||||||
|
|
||||||
id := restic.ID(sha256.Sum256(data))
|
id := restic.ID(sha256.Sum256(data))
|
||||||
|
var wg errgroup.Group
|
||||||
|
repo.StartPackUploader(context.Background(), &wg)
|
||||||
|
|
||||||
t.ReportAllocs()
|
t.ReportAllocs()
|
||||||
t.ResetTimer()
|
t.ResetTimer()
|
||||||
|
Loading…
Reference in New Issue
Block a user