From d6db5a1fc2190e8e3447cf88968addfb7b013ea1 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 13 Feb 2022 16:47:03 +0100 Subject: [PATCH] archiver: Fix test The test relied on an undeocumented sideeffect of the LoadBlob implementation --- internal/archiver/testing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/archiver/testing.go b/internal/archiver/testing.go index 873e9ab5d..d8ad0a9e7 100644 --- a/internal/archiver/testing.go +++ b/internal/archiver/testing.go @@ -234,6 +234,7 @@ func TestEnsureFileContent(ctx context.Context, t testing.TB, repo restic.Reposi return } + copy(content[pos:pos+len(part)], part) pos += len(part) }