fix
This commit is contained in:
@@ -2,7 +2,8 @@ package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
homeuserauthtest "fusenapi/server/home-user-auth/test"
|
||||
|
||||
authtest "fusenapi/server/auth/test"
|
||||
"fusenapi/server/upload/internal/config"
|
||||
"fusenapi/server/upload/internal/handler"
|
||||
"fusenapi/server/upload/internal/svc"
|
||||
@@ -20,7 +21,7 @@ var userver, gserver *rest.Server
|
||||
|
||||
func init() {
|
||||
log.SetFlags(log.Llongfile)
|
||||
userver = homeuserauthtest.GetTestServer()
|
||||
userver = authtest.GetTestServer()
|
||||
gserver = GetTestServer()
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ func TestCaseRenderMegre(t *testing.T) {
|
||||
|
||||
// 获取 session,并携带 JWT token
|
||||
ses := fstests.GetSessionWithUserToken(t, userver, cnf.Host, cnf.Port)
|
||||
tp := ses.Post(fmt.Sprintf("http://%s:%d/upload/upload-file-backend", cnf.Host, cnf.Port))
|
||||
tp := ses.Post(fmt.Sprintf("http://%s:%d/api/upload/upload-file-backend", cnf.Host, cnf.Port))
|
||||
|
||||
mp := tp.CreateBodyMultipart()
|
||||
f, err := os.Open("./fusen.webp")
|
||||
|
||||
@@ -20,7 +20,7 @@ func TestCasePersonalization(t *testing.T) {
|
||||
|
||||
// 获取 session,并携带 JWT token
|
||||
ses := fstests.GetSessionWithUserToken(t, userver, cnf.Host, cnf.Port)
|
||||
tp := ses.Post(fmt.Sprintf("http://%s:%d/upload/upload-file-frontend", cnf.Host, cnf.Port))
|
||||
tp := ses.Post(fmt.Sprintf("http://%s:%d/api/upload/upload-file-frontend", cnf.Host, cnf.Port))
|
||||
|
||||
data, err := ioutil.ReadFile("./fusen.webp")
|
||||
if err != nil {
|
||||
@@ -75,7 +75,7 @@ func TestCaseRenderMegreF(t *testing.T) {
|
||||
|
||||
// 获取 session,并携带 JWT token
|
||||
ses := fstests.GetSessionWithUserToken(t, userver, cnf.Host, cnf.Port)
|
||||
tp := ses.Post(fmt.Sprintf("http://%s:%d/upload/upload-file-frontend", cnf.Host, cnf.Port))
|
||||
tp := ses.Post(fmt.Sprintf("http://%s:%d/api/upload/upload-file-frontend", cnf.Host, cnf.Port))
|
||||
|
||||
data, err := ioutil.ReadFile("./fusen.webp")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user