Checklist
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:
cargo test
on WSL2Applicable 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(()) }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4