Skip to content

Commit

Permalink
Added sync in get command output
Browse files Browse the repository at this point in the history
Signed-off-by: dkijania <dariusz.kijania@iohk.io>
  • Loading branch information
dkijania committed Apr 24, 2019
1 parent 3ba483e commit 4e829c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/common/process_utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,13 @@ pub fn run_process_until_response_matches<F: Fn(Output) -> bool>(

loop {
let output = command
.output()
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
.unwrap()
.wait_with_output()
.expect(&format!("cannot get output from command {:?}", &command));

if is_output_ok(output) {
break;
}
Expand Down

0 comments on commit 4e829c0

Please sign in to comment.