mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #14248 from ahrtr/update_TestRemoveMatchFile
No need to manually remove tmp directory created by t.TempDir()
This commit is contained in:
commit
6d27a42b7d
@ -180,7 +180,6 @@ func TestDirPermission(t *testing.T) {
|
|||||||
|
|
||||||
func TestRemoveMatchFile(t *testing.T) {
|
func TestRemoveMatchFile(t *testing.T) {
|
||||||
tmpdir := t.TempDir()
|
tmpdir := t.TempDir()
|
||||||
defer os.RemoveAll(tmpdir)
|
|
||||||
f, err := os.CreateTemp(tmpdir, "tmp")
|
f, err := os.CreateTemp(tmpdir, "tmp")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user