From 50535e6b422ac6b0195f9d3a83607326401cee0b Mon Sep 17 00:00:00 2001 From: Meng Zhuo Date: Thu, 5 Dec 2019 17:34:57 +0800 Subject: [PATCH] cmd/go: delete TestGetFileURL temporary file Change-Id: I191ac2a2b469c6179d22d66c15f2d96ecb3d0902 Reviewed-on: https://go-review.googlesource.com/c/go/+/209970 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/cmd/go/internal/web/file_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/go/internal/web/file_test.go b/src/cmd/go/internal/web/file_test.go index e31ad71d4d982e..63394690453dd0 100644 --- a/src/cmd/go/internal/web/file_test.go +++ b/src/cmd/go/internal/web/file_test.go @@ -19,6 +19,8 @@ func TestGetFileURL(t *testing.T) { if err != nil { t.Fatal(err) } + defer os.Remove(f.Name()) + if _, err := f.WriteString(content); err != nil { t.Error(err) }