fix: tests

This commit is contained in:
yusing
2025-04-30 17:42:51 +08:00
parent 80e59bb481
commit 62c551c7fe
5 changed files with 40 additions and 13 deletions

View File

@@ -98,7 +98,7 @@ func TestUserPassLoginCallbackHandler(t *testing.T) {
Host: "app.example.com",
Body: io.NopCloser(bytes.NewReader(Must(json.Marshal(tt.creds)))),
}
auth.LoginHandler(w, req)
auth.PostAuthCallbackHandler(w, req)
if tt.wantErr {
ExpectEqual(t, w.Code, http.StatusUnauthorized)
} else {