Skip to content

Commit

Permalink
chore: Fix shell tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed May 3, 2023
1 parent 33d6352 commit 1397172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/shell/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ mod tests {
#[test]
fn test_cmd_output_output() {
let cmd = Command::new("cat").args(["test/api/test.txt"]);
let output = cmd.output().unwrap();
let output = tauri::async_runtime::block_on(cmd.output()).unwrap();

assert_eq!(String::from_utf8(output.stderr).unwrap(), "");
assert_eq!(
Expand All @@ -493,7 +493,7 @@ mod tests {
#[test]
fn test_cmd_output_output_fail() {
let cmd = Command::new("cat").args(["test/api/"]);
let output = cmd.output().unwrap();
let output = tauri::async_runtime::block_on(cmd.output()).unwrap();

assert_eq!(String::from_utf8(output.stdout).unwrap(), "");
assert_eq!(
Expand Down

0 comments on commit 1397172

Please sign in to comment.