mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 16:23:59 +00:00
archiver: Remove unused variable from test
This commit is contained in:
parent
d9a80e07b9
commit
014600bee6
@ -92,12 +92,9 @@ func TestBlobSaverError(t *testing.T) {
|
|||||||
|
|
||||||
b := NewBlobSaver(ctx, tmb, saver, uint(runtime.NumCPU()))
|
b := NewBlobSaver(ctx, tmb, saver, uint(runtime.NumCPU()))
|
||||||
|
|
||||||
var results []FutureBlob
|
|
||||||
|
|
||||||
for i := 0; i < test.blobs; i++ {
|
for i := 0; i < test.blobs; i++ {
|
||||||
buf := &Buffer{Data: []byte(fmt.Sprintf("foo%d", i))}
|
buf := &Buffer{Data: []byte(fmt.Sprintf("foo%d", i))}
|
||||||
fb := b.Save(ctx, restic.DataBlob, buf)
|
b.Save(ctx, restic.DataBlob, buf)
|
||||||
results = append(results, fb)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tmb.Kill(nil)
|
tmb.Kill(nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user