lib/model: Helperize test os and remove error return value (#5507)

This commit is contained in:
Simon Frei
2019-02-05 19:01:05 +01:00
committed by Audrius Butkevicius
parent c75cfcfd06
commit 5d9d87f770
4 changed files with 27 additions and 26 deletions

View File

@@ -293,7 +293,7 @@ func TestWeakHash(t *testing.T) {
cleanup()
defer cleanup()
f, _ := testOs.Create("testdata/weakhash")
f := testOs.Create("testdata/weakhash")
defer f.Close()
_, err := io.CopyN(f, rand.Reader, size)
if err != nil {