Skip to content

Commit

Permalink
os: use t.TempDir in TestRemoveAllRace
Browse files Browse the repository at this point in the history
Change-Id: I35d47bcac37945237bfef9f06195bc55dc9aa920
Reviewed-on: https://go-review.googlesource.com/c/go/+/611036
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
kolyshkin authored and gopherbot committed Sep 6, 2024
1 parent 8cb6143 commit 6cb8e5c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/os/os_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2603,10 +2603,7 @@ func TestRemoveAllRace(t *testing.T) {

n := runtime.GOMAXPROCS(16)
defer runtime.GOMAXPROCS(n)
root, err := MkdirTemp("", "issue")
if err != nil {
t.Fatal(err)
}
root := t.TempDir()
mkdirTree(t, root, 1, 6)
hold := make(chan struct{})
var wg sync.WaitGroup
Expand Down

0 comments on commit 6cb8e5c

Please sign in to comment.