test: close file before deleting

This commit is contained in:
bergquist 2017-11-28 15:05:53 +01:00
parent 2bc91c8660
commit c0e087640b

View File

@ -38,6 +38,7 @@ func TestLogFile(t *testing.T) {
So(fileLogWrite.maxlines_curlines, ShouldEqual, 3)
})
fileLogWrite.Close()
err = os.Remove(fileLogWrite.Filename)
So(err, ShouldBeNil)
})