Skip to content

Commit 8bc32ab

Browse files
4a6f656cgopherbot
authored andcommitted
os: clean up after TestIssue60181
This test currently leaves two temp files lying around - ensure these are created in the current working directory (a temp dir) so that they get cleaned up when the test is complete. Change-Id: I9a29e24a2cd601de3ab39c421830ee2bcda76516 Reviewed-on: https://go-review.googlesource.com/c/go/+/597317 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent b31e9a6 commit 8bc32ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/os/os_unix_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,14 @@ func TestIssue60181(t *testing.T) {
376376

377377
want := "hello gopher"
378378

379-
a, err := CreateTemp("", "a")
379+
a, err := CreateTemp(".", "a")
380380
if err != nil {
381381
t.Fatal(err)
382382
}
383383
a.WriteString(want[:5])
384384
a.Close()
385385

386-
b, err := CreateTemp("", "b")
386+
b, err := CreateTemp(".", "b")
387387
if err != nil {
388388
t.Fatal(err)
389389
}

0 commit comments

Comments
 (0)