Skip to content

Commit

Permalink
Increase timeout for poll_oneoff tests
Browse files Browse the repository at this point in the history
This increases the timeout from 50ms to 200ms, which makes the
tests reliably pass on my machine using the CI scripts againt
the s390x-linux-user qemu target.
  • Loading branch information
uweigand committed Jun 23, 2021
1 parent 324d807 commit c881c01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::HashMap;
use std::mem::MaybeUninit;
use wasi_tests::{assert_errno, STDERR_FD, STDIN_FD, STDOUT_FD};

const TIMEOUT: u64 = 50_000_000u64; // 50 milliseconds, required to satisfy slow execution in CI
const TIMEOUT: u64 = 200_000_000u64; // 200 milliseconds, required to satisfy slow execution in CI
const CLOCK_ID: wasi::Userdata = 0x0123_45678;
const STDIN_ID: wasi::Userdata = 0x8765_43210;

Expand Down
2 changes: 1 addition & 1 deletion crates/wasi-common/tokio/tests/poll_oneoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use wasi_common::{
};
use wasi_tokio::{clocks_ctx, sched::poll_oneoff, Dir};

const TIMEOUT: Duration = Duration::from_millis(50); // Required for slow execution in CI
const TIMEOUT: Duration = Duration::from_millis(200); // Required for slow execution in CI

#[tokio::test(flavor = "multi_thread")]
async fn empty_file_readable() -> Result<(), Error> {
Expand Down

0 comments on commit c881c01

Please sign in to comment.