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:
Alex Brainman 2011-12-19 17:30:14 +11:00
parent 35755b9cdb
commit c4227f5bb0

View File

@ -60,6 +60,7 @@ func TestWriteFile(t *testing.T) {
}
// cleanup
f.Close()
os.Remove(filename) // ignore error
}