Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64257989 authored by Sam Saccone's avatar Sam Saccone
Browse files

Remove significantly flakey tests until fixed.

Test: removing tests due to flake
BUG=269793311

Change-Id: I6c1d76df8771b78f90f4a54870365c30d7ed8ce1
parent 5b95ee4c
Loading
Loading
Loading
Loading
+0 −28
Original line number Diff line number Diff line
@@ -89,19 +89,6 @@ mod tests {
    use crate::assert_near;
    use std::time::{Duration, Instant};

    #[test]
    fn alarm_simple_case() {
        let runtime = tokio::runtime::Runtime::new().unwrap();
        runtime.block_on(async {
            let timer = Instant::now();
            let alarm = Alarm::new();
            alarm.reset(Duration::from_millis(10));
            alarm.expired().await;

            assert_near!(timer.elapsed().as_millis(), 10, 3);
        });
    }

    #[test]
    fn alarm_cancel_after_expired() {
        let runtime = tokio::runtime::Runtime::new().unwrap();
@@ -152,19 +139,4 @@ mod tests {
            interval(Duration::from_millis(10));
        });
    }

    #[test]
    fn interval_simple_case() {
        let runtime = tokio::runtime::Runtime::new().unwrap();
        runtime.block_on(async {
            let timer = Instant::now();
            let mut interval = interval(Duration::from_millis(10));

            for n in 1..10 {
                interval.tick().await;
                println!("{}", n);
                assert_near!(timer.elapsed().as_millis(), 10 * n, 3);
            }
        });
    }
}