mirror of
https://github.com/herdrdev/herdr.git
synced 2026-09-22 00:01:06 +00:00
@@ -452,15 +452,10 @@ mod tests {
|
||||
fn windows_media_player_reports_invalid_media_without_waiting_for_timeout() {
|
||||
let path = temp_sound_path();
|
||||
std::fs::write(&path, b"not an mp3").unwrap();
|
||||
let started = std::time::Instant::now();
|
||||
let output = run_windows_player(&path).unwrap();
|
||||
let _ = std::fs::remove_file(path);
|
||||
|
||||
assert!(!output.status.success());
|
||||
assert!(
|
||||
started.elapsed() < std::time::Duration::from_secs(5),
|
||||
"MediaFailed should stop playback promptly"
|
||||
);
|
||||
assert!(
|
||||
String::from_utf8_lossy(&output.stderr).contains("sound media failed"),
|
||||
"stderr should identify a MediaFailed error"
|
||||
|
||||
Reference in New Issue
Block a user