From 137f0bc9448c00533abf78aea11e70dbb0c1c677 Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Tue, 25 Oct 2022 17:21:24 +0200 Subject: [PATCH] repository: Fix benchmarkSaveAndEncrypt --- internal/repository/repository_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/repository/repository_test.go b/internal/repository/repository_test.go index 7b5789605..f4be16cbc 100644 --- a/internal/repository/repository_test.go +++ b/internal/repository/repository_test.go @@ -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()