Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
  • Loading branch information
zhiburt committed Sep 6, 2021
1 parent 0e609b6 commit fc80241
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --verbose -- send
args: --verbose --no-fail-fast

fmt:
name: Rustfmt
Expand Down
7 changes: 6 additions & 1 deletion tests/expect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ fn expect_n_bytes() {
#[cfg(windows)]
#[test]
fn expect_n_bytes() {
let mut session = spawn("echo 'Hello World'").unwrap();
use expectrl::{ProcAttr, Session};

let mut session = Session::spawn(
ProcAttr::default().commandline(r#"pwsh -C "echo 'Hello World'""#.to_string()),
)
.unwrap();

// give shell some time
std::thread::sleep(Duration::from_millis(300));
Expand Down

0 comments on commit fc80241

Please sign in to comment.