From 234eefd82b6dd29308f9945f8a1b3478ea86eeb6 Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Sun, 8 Mar 2026 11:49:06 +0100 Subject: [PATCH] remove sleep in test --- tests/oidc/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/oidc/mod.rs b/tests/oidc/mod.rs index 9375cff4..d3c1a4f2 100644 --- a/tests/oidc/mod.rs +++ b/tests/oidc/mod.rs @@ -643,7 +643,7 @@ async fn test_slow_token_endpoint_does_not_freeze_server() { // Let the TCP round-trip complete so awc reads HTTP headers, // then advance past the body-read timeout. - tokio::time::sleep(Duration::from_millis(50)).await; + tokio::task::yield_now().await; tokio::time::pause(); tokio::time::advance(Duration::from_secs(60)).await;