1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 08:16:36 +00:00

archiver: Fix test

The test relied on an undeocumented sideeffect of the LoadBlob implementation
This commit is contained in:
Michael Eischer 2022-02-13 16:47:03 +01:00
parent f78bd14e28
commit d6db5a1fc2

View file

@ -234,6 +234,7 @@ func TestEnsureFileContent(ctx context.Context, t testing.TB, repo restic.Reposi
return return
} }
copy(content[pos:pos+len(part)], part)
pos += len(part) pos += len(part)
} }