Increase timeout for poll_oneoff tests

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.
This commit is contained in:
Ulrich Weigand
2021-06-23 20:04:31 +02:00
parent 324d80729a
commit c881c01cde
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ use std::collections::HashMap;
use std::mem::MaybeUninit; use std::mem::MaybeUninit;
use wasi_tests::{assert_errno, STDERR_FD, STDIN_FD, STDOUT_FD}; 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 CLOCK_ID: wasi::Userdata = 0x0123_45678;
const STDIN_ID: wasi::Userdata = 0x8765_43210; const STDIN_ID: wasi::Userdata = 0x8765_43210;

View File

@@ -8,7 +8,7 @@ use wasi_common::{
}; };
use wasi_tokio::{clocks_ctx, sched::poll_oneoff, Dir}; 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")] #[tokio::test(flavor = "multi_thread")]
async fn empty_file_readable() -> Result<(), Error> { async fn empty_file_readable() -> Result<(), Error> {