forked from TrueCloudLab/restic
Add progress report for loading blobs
This commit is contained in:
parent
58cded6b75
commit
a59b0ec1f6
5 changed files with 76 additions and 20 deletions
|
@ -146,7 +146,7 @@ func BenchmarkArchiveDirectory(b *testing.B) {
|
|||
func snapshot(t testing.TB, server restic.Server, path string) *restic.Snapshot {
|
||||
arch, err := restic.NewArchiver(server)
|
||||
ok(t, err)
|
||||
ok(t, arch.Preload())
|
||||
ok(t, arch.Preload(nil))
|
||||
sn, _, err := arch.Snapshot(nil, path, nil)
|
||||
ok(t, err)
|
||||
return sn
|
||||
|
@ -230,6 +230,6 @@ func BenchmarkPreload(t *testing.B) {
|
|||
// create new archiver and preload
|
||||
arch2, err := restic.NewArchiver(server)
|
||||
ok(t, err)
|
||||
ok(t, arch2.Preload())
|
||||
ok(t, arch2.Preload(nil))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue