mirror of
https://github.com/restic/restic.git
synced 2026-11-24 07:13:50 +00:00
more cleanup
This commit is contained in:
1 parent
7af7c64403
commit
0d9360a815
7 files changed
+18
-33
No files matched your search
+3
-4
@@ -121,10 +121,10 @@ func archiveDirectory(b testing.TB) {
|
||||
key := SetupKey(b, server, "geheim")
|
||||
server.SetKey(key)
|
||||
|
||||
arch, err := restic.NewArchiver(server)
|
||||
OK(b, err)
|
||||
arch := restic.NewArchiver(server)
|
||||
|
||||
_, id, err := arch.Snapshot(nil, []string{*benchArchiveDirectory}, nil)
|
||||
OK(b, err)
|
||||
|
||||
b.Logf("snapshot archived as %v", id)
|
||||
}
|
||||
@@ -238,8 +238,7 @@ func BenchmarkLoadTree(t *testing.B) {
|
||||
s.SetKey(key)
|
||||
|
||||
// archive a few files
|
||||
arch, err := restic.NewArchiver(s)
|
||||
OK(t, err)
|
||||
arch := restic.NewArchiver(s)
|
||||
sn, _, err := arch.Snapshot(nil, []string{*benchArchiveDirectory}, nil)
|
||||
OK(t, err)
|
||||
t.Logf("archived snapshot %v", sn.ID())
|
||||
|
||||
Reference in new issue
Block a user