Debug: wtf
Some checks failed
Some checks failed
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user