Skip to content

Commit

Permalink
Fix freebsd tests
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
  • Loading branch information
zhiburt committed Dec 10, 2021
1 parent 48f2432 commit c13a62c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/check.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use expectrl::{spawn, Any, Eof, NBytes, Regex};
use expectrl::{spawn, Any, Eof, NBytes, Regex, WaitStatus};
use std::thread;
use std::time::Duration;

Expand Down Expand Up @@ -249,7 +249,7 @@ fn check_macro() {
fn check_macro_eof() {
let mut session = spawn("echo 'Hello World'").unwrap();

thread::sleep(Duration::from_millis(600));
assert_eq!(WaitStatus::Exited(session.pid(), 0), session.wait().unwrap());

expectrl::check!(
session,
Expand All @@ -273,7 +273,7 @@ fn check_macro_eof() {
fn check_macro_eof() {
let mut session = spawn("echo 'Hello World'").unwrap();

thread::sleep(Duration::from_millis(600));
assert_eq!(WaitStatus::Exited(session.pid(), 0), session.wait().unwrap());

futures_lite::future::block_on(async {
expectrl::check!(
Expand Down

0 comments on commit c13a62c

Please sign in to comment.