Ver código fonte

fix call error func (#3245)

guangwu 1 ano atrás
pai
commit
f0bdfb928f
1 arquivos alterados com 2 adições e 2 exclusões
  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)