mirror of
https://github.com/octoleo/restic.git
synced 2024-11-25 14:17:42 +00:00
Fix benchmark for EncryptWriter
This commit is contained in:
parent
12c8522b33
commit
56bca76b74
@ -103,6 +103,7 @@ func BenchmarkEncryptWriter(b *testing.B) {
|
|||||||
wr := k.EncryptTo(ioutil.Discard)
|
wr := k.EncryptTo(ioutil.Discard)
|
||||||
_, err := io.Copy(wr, rd)
|
_, err := io.Copy(wr, rd)
|
||||||
ok(b, err)
|
ok(b, err)
|
||||||
|
ok(b, wr.Close())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user