Skip to content

Commit

Permalink
Increase sleep for std try_wait tests
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Aug 25, 2021
1 parent b704729 commit 382447b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/stdlib_windows.rs
Expand Up @@ -153,7 +153,7 @@ fn try_wait_after_die_normal() -> Result<()> {
.arg("/C")
.arg("echo hello")
.spawn()?;
sleep(DIE_TIME);
sleep(DIE_TIME * 2);

let status = child.try_wait()?;
assert!(status.is_some());
Expand All @@ -168,7 +168,7 @@ fn try_wait_after_die_group() -> Result<()> {
.arg("/C")
.arg("echo hello")
.group_spawn()?;
sleep(DIE_TIME);
sleep(DIE_TIME * 2);

let status = child.try_wait()?;
assert!(status.is_some());
Expand Down
4 changes: 2 additions & 2 deletions tests/tokio_windows.rs
Expand Up @@ -153,7 +153,7 @@ async fn try_wait_after_die_normal() -> Result<()> {
.arg("/C")
.arg("echo hello")
.spawn()?;
sleep(DIE_TIME).await;
sleep(DIE_TIME * 2).await;

let status = child.try_wait()?;
assert!(status.is_some());
Expand All @@ -168,7 +168,7 @@ async fn try_wait_after_die_group() -> Result<()> {
.arg("/C")
.arg("echo hello")
.group_spawn()?;
sleep(DIE_TIME).await;
sleep(DIE_TIME * 2).await;

let status = child.try_wait()?;
assert!(status.is_some());
Expand Down

0 comments on commit 382447b

Please sign in to comment.