Skip to content

Commit

Permalink
Merge branch 'main' into chore_clippy_print_stderr_stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed May 8, 2024
2 parents 3422259 + 0e9b7f6 commit 9b395ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ext/web/stream_resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,13 @@ mod tests {
// Slightly slower reader
let b = deno_core::unsync::spawn(async move {
for _ in 0..BUFFER_CHANNEL_SIZE * 2 {
tokio::time::sleep(Duration::from_millis(1)).await;
if cfg!(windows) {
// windows has ~15ms resolution on sleep, so just yield so
// this test doesn't take 30 seconds to run
tokio::task::yield_now().await;
} else {
tokio::time::sleep(Duration::from_millis(1)).await;
}
poll_fn(|cx| channel.poll_read_ready(cx)).await;
channel.read(BUFFER_AGGREGATION_LIMIT).unwrap();
}
Expand Down

0 comments on commit 9b395ad

Please sign in to comment.