mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 02:39:55 +00:00
test: try to stabilize CI
This commit is contained in:
parent
18dffe8b43
commit
8f17e9275b
1 changed files with 2 additions and 2 deletions
|
@ -10,9 +10,9 @@ wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
|
||||||
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
|
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
|
||||||
fn timeout_future_many() {
|
fn timeout_future_many() {
|
||||||
task::block_on(async {
|
task::block_on(async {
|
||||||
let futures = (0..100)
|
let futures = (0..10)
|
||||||
.map(|i| {
|
.map(|i| {
|
||||||
timeout(Duration::from_millis(i * 20), async move {
|
timeout(Duration::from_millis(i * 50), async move {
|
||||||
task::sleep(Duration::from_millis(i)).await;
|
task::sleep(Duration::from_millis(i)).await;
|
||||||
Ok::<(), async_std::future::TimeoutError>(())
|
Ok::<(), async_std::future::TimeoutError>(())
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue