lib/model: Helperize test os and remove error return value (#5507)
This commit is contained in:
committed by
Audrius Butkevicius
parent
c75cfcfd06
commit
5d9d87f770
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user