Move testing logic to test file in internal/pack

This commit is contained in:
greatroar committed 2020-03-09 14:32:28 +01:00
1 parent a23e9c86ba
commit 74a64c47e4
2 files changed
+2 -6

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ func newPack(t testing.TB, k *crypto.Key, lengths []int) ([]Buf, []byte, uint) {
}
// pack blobs
p := pack.NewPacker(k, nil)
p := pack.NewPacker(k, new(bytes.Buffer))
for _, b := range bufs {
p.Add(restic.TreeBlob, b.id, b.data)
}