Skip to content

0.23.30 appears to stall my integration tests on WSL2 #2584

@joelmichael

Description

@joelmichael

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:

  1. Run cargo test on 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(())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions