forked from TrueCloudLab/restic
Fix benchmark for EncryptWriter
This commit is contained in:
parent
12c8522b33
commit
56bca76b74
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue