From f0bdfb928fc9f431bb930ce5c8872169f735ce32 Mon Sep 17 00:00:00 2001 From: guangwu Date: Fri, 12 May 2023 12:34:08 +0800 Subject: [PATCH] fix call error func (#3245) --- tools/goctl/util/pathx/path_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/goctl/util/pathx/path_test.go b/tools/goctl/util/pathx/path_test.go index 0b7c2a82..697101e5 100644 --- a/tools/goctl/util/pathx/path_test.go +++ b/tools/goctl/util/pathx/path_test.go @@ -9,9 +9,9 @@ import ( ) func TestReadLink(t *testing.T) { - dir, err := os.CreateTemp("", "go-zero") + dir, err := os.MkdirTemp("", "go-zero") assert.Nil(t, err) - symLink := filepath.Join(dir.Name(), "test") + symLink := filepath.Join(dir, "test") pwd, err := os.Getwd() assertError(err, t)