]> Cypherpunks repositories - gostls13.git/commit
os: use t.TempDir in TestReadOnlyWriteFile
authorKir Kolyshkin <kolyshkin@gmail.com>
Mon, 19 Aug 2024 22:21:46 +0000 (15:21 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 20 Aug 2024 16:06:05 +0000 (16:06 +0000)
commitef0b015407547838ed17518e932ba9c372599c70
tree8f0c9a146e37a3259afd5400b80dfdb32bf305ad
parent4b767cf6fd31c8459378cb3298c46245202aea63
os: use t.TempDir in TestReadOnlyWriteFile

This test is checking WriteFile, not MkdirTemp, and using t.TempDir
makes the test case code a tad smaller and simpler.

Change-Id: I48837f77572f375d56f3a387efa9a4ee1d3706fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/606898
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/os/read_test.go