]> Cypherpunks repositories - gostls13.git/commit
os: simplify TestRemoveAllLongPath
authorKir Kolyshkin <kolyshkin@gmail.com>
Mon, 19 Aug 2024 20:23:09 +0000 (13:23 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 20 Aug 2024 15:58:01 +0000 (15:58 +0000)
commit5164f6169725bb88a29482f497e1bbf099a5dd29
tree33ddc619012282a4145fa914be935a1f765a69a8
parentf432b5f756c223564fd397b7568bd2ce949c7c6f
os: simplify TestRemoveAllLongPath

Simplify the test logic by using t.TempDir, t.Chdir, and Chdir to
startPath parent.

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