From 1397172e95aba7b25f3c773930216e2fe0254261 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Wed, 3 May 2023 09:51:24 +0200 Subject: [PATCH] chore: Fix shell tests --- plugins/shell/src/process/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/shell/src/process/mod.rs b/plugins/shell/src/process/mod.rs index 751d54d4c..1b3befd7a 100644 --- a/plugins/shell/src/process/mod.rs +++ b/plugins/shell/src/process/mod.rs @@ -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!( @@ -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!(