Fixed test failures
This commit is contained in:
parent
c8552a1488
commit
0e0713c3a0
4 changed files with 83 additions and 10 deletions
|
|
@ -53,6 +53,7 @@ impl Intel400xAddressHandling for MockComponent {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::thread;
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
@ -298,6 +299,8 @@ mod tests {
|
|||
false
|
||||
);
|
||||
|
||||
thread::sleep(Duration::from_micros(1));
|
||||
|
||||
// Test with recent latch time (should return false if not enough time elapsed)
|
||||
let recent_time = Some(Instant::now());
|
||||
assert_eq!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue