Commit 50535e6b authored by Meng Zhuo's avatar Meng Zhuo Committed by Brad Fitzpatrick

cmd/go: delete TestGetFileURL temporary file

Change-Id: I191ac2a2b469c6179d22d66c15f2d96ecb3d0902
Reviewed-on: https://go-review.googlesource.com/c/go/+/209970Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent af088224
...@@ -19,6 +19,8 @@ func TestGetFileURL(t *testing.T) { ...@@ -19,6 +19,8 @@ func TestGetFileURL(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
defer os.Remove(f.Name())
if _, err := f.WriteString(content); err != nil { if _, err := f.WriteString(content); err != nil {
t.Error(err) t.Error(err)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment