mirror of
https://github.com/restic/restic.git
synced 2025-08-14 03:57:46 +00:00
Fix benchmark for EncryptWriter
This commit is contained in:
@@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user