-
-
Notifications
You must be signed in to change notification settings - Fork 799
Closed
Description
Checklist
- I've searched the issue tracker for similar bugs.
Describe the bug
My integration tests which make requests consistently stall out with maxed CPU on rustls version 0.23.30 when running on WSL2.
To Reproduce
Steps to reproduce the behavior:
- Run
cargo teston WSL2
Applicable Version(s)
0.23.30
Expected behavior
The tests run without incident.
Additional context
Locking rustls to version 0.23.29 resolves the issue for now.
Version 0.23.30 works without incident on my Mac.
My app continues to run normally via cargo run on WSL2.
My WSL2 is running Debian 12.11.
It stalls in both the VSCode terminal and in Windows Terminal.
A sample test which stalls:
/// Tests the login form page rendering.
#[tokio::test]
async fn login_form() -> Result<(), Box<dyn Error + Send + Sync>> {
let (router, _state) = init_test().await;
let request = Request::builder()
.uri("/login")
.header(X_REAL_IP, TEST_IP)
.body(Body::empty())?;
let response = router.oneshot(request).await?;
assert!(response.status().is_success());
let body_str = response_body_str(response).await;
assert!(body_str.contains("Log in"));
Ok(())
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels