record-daemon: fix failing test
This commit is contained in:
@@ -222,11 +222,11 @@ mod tests {
|
|||||||
fn test_recording_stats_drop_rate() {
|
fn test_recording_stats_drop_rate() {
|
||||||
let stats = RecordingStats {
|
let stats = RecordingStats {
|
||||||
frames_recorded: 1000,
|
frames_recorded: 1000,
|
||||||
frames_dropped: 50,
|
frames_dropped: 40,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
assert_eq!(stats.drop_rate(), 5.0);
|
assert_eq!(stats.drop_rate(), 4.0);
|
||||||
assert!(stats.is_healthy());
|
assert!(stats.is_healthy());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user