Skip to content

Commit 234eefd

Browse files
committed
remove sleep in test
1 parent f2e23c0 commit 234eefd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/oidc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ async fn test_slow_token_endpoint_does_not_freeze_server() {
643643

644644
// Let the TCP round-trip complete so awc reads HTTP headers,
645645
// then advance past the body-read timeout.
646-
tokio::time::sleep(Duration::from_millis(50)).await;
646+
tokio::task::yield_now().await;
647647
tokio::time::pause();
648648
tokio::time::advance(Duration::from_secs(60)).await;
649649

0 commit comments

Comments
 (0)