diff --git a/crates/agent/src/github_oauth.rs b/crates/agent/src/github_oauth.rs index b154f29..25a3711 100644 --- a/crates/agent/src/github_oauth.rs +++ b/crates/agent/src/github_oauth.rs @@ -437,6 +437,10 @@ mod tests { continued_url, format!("{}/", redirect.origin().ascii_serialization()) ); + // A fresh client: the first one may still pool a keep-alive + // connection to the aborted server on this same port, and a request + // sent on it is reset. + let client = reqwest::Client::new(); assert_eq!( client .get(format!("{continued_url}flow-ready"))