Browse Source

fix call error func (#3245)

guangwu 1 năm trước cách đây
mục cha
commit
f0bdfb928f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      tools/goctl/util/pathx/path_test.go

+ 2 - 2
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)