mirror of
https://github.com/golang/go
synced 2024-11-22 05:24:39 -07:00
io/ioutil: close file in TestWriteFile before deleting it
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5495086
This commit is contained in:
parent
35755b9cdb
commit
c4227f5bb0
@ -60,6 +60,7 @@ func TestWriteFile(t *testing.T) {
|
||||
}
|
||||
|
||||
// cleanup
|
||||
f.Close()
|
||||
os.Remove(filename) // ignore error
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user