mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
test: close file before deleting
This commit is contained in:
parent
2bc91c8660
commit
c0e087640b
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user