Skip to content

Commit e3efe51

Browse files
committed
[rust] Assert in recording test
1 parent 2cb138d commit e3efe51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/src/ffmpeg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,5 @@ pub fn record_desktop_with_ffmpeg(
231231
};
232232
run_shell_command_with_stderr(log, os, command, true).unwrap();
233233

234-
return Err(anyhow!("Command for recording desktop terminated")); // This line should be executed
234+
return Err(anyhow!("Command for recording desktop terminated"));
235235
}

rust/tests/record_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ fn test_record() {
4444
child.wait().unwrap().code()
4545
}
4646
};
47-
println!("Recording test status code: {:?}", status_code);
47+
assert_eq!(status_code, Some(1));
4848
}

0 commit comments

Comments
 (0)