mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: align temporary file, directory names in tests
Also adds missing temporary file deletion. Change-Id: Ia644b0898022e05d2f5232af38f51d55e40c6fb5 Reviewed-on: https://go-review.googlesource.com/9772 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
aebd123e8c
commit
76d67eaccc
3 changed files with 4 additions and 3 deletions
|
|
@ -524,10 +524,11 @@ func TestFileError(t *testing.T) {
|
|||
t.Skip("not supported on %s", runtime.GOOS)
|
||||
}
|
||||
|
||||
f, err := ioutil.TempFile("", "nettest")
|
||||
f, err := ioutil.TempFile("", "go-nettest")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.Remove(f.Name())
|
||||
defer f.Close()
|
||||
|
||||
c, err := FileConn(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue