Debug: wtf
Some checks failed
Go test / run-go-vet (push) Successful in 6s
Go test / check-swagger-up-to-date (push) Successful in 9s
Go test / run-go-test (push) Successful in 20s
Go test / cleanup-go-test (push) Successful in 4s
Go test / release-image (push) Has been cancelled

This commit is contained in:
2025-12-13 02:17:46 +08:00
parent e6c46f29f5
commit fd02363da4
6 changed files with 36 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ func Test_01_Login(t *testing.T) {
t.Run("check preshared key failed", func(t *testing.T) {
resp, err := client.R().
SetBody(`{"userId": "testuser1"}`).
Post("http://localhost:8080/auth/gen-login-url")
Post("/auth/gen-login-url")
if err != nil {
t.Fatal("request failed")
}
@@ -32,7 +32,7 @@ func Test_01_Login(t *testing.T) {
SetBody(`{"userId": "testuser1"}`).
SetAuthToken("poop").
SetResult(&payload).
Post("http://localhost:8080/auth/gen-login-url")
Post("/auth/gen-login-url")
if err != nil || resp.StatusCode() != http.StatusOK {
t.Fatal("failed to get login url")