storkit: merge 449_bug_oauth_callback_url_ignores_port_cli_flag
This commit is contained in:
@@ -423,6 +423,13 @@ mod tests {
|
||||
assert_eq!(state.callback_url(), "http://localhost:3001/callback");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn oauth_state_callback_url_uses_given_port() {
|
||||
// Ensure OAuthState::new uses the port passed to it, not a hardcoded value.
|
||||
let state = OAuthState::new(9876);
|
||||
assert_eq!(state.callback_url(), "http://localhost:9876/callback");
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn html_response_contains_title_and_message() {
|
||||
let resp = html_response(StatusCode::OK, "Test Title", "Test message");
|
||||
|
||||
Reference in New Issue
Block a user