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

Commit 0a091095 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix flaky test

*surely* it can't drift 250ms :D

Test: this
Change-Id: I92ad1691e97520f38e4dcaa95b47758403a50309
Fixes: 117162714
parent b194ee65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ public class SnoozeHelperTest extends UiServiceTestCase {
        verify(mAm, times(1)).setExactAndAllowWhileIdle(
                anyInt(), captor.capture(), any(PendingIntent.class));
        long actualSnoozedUntilDuration = captor.getValue() - SystemClock.elapsedRealtime();
        assertTrue(Math.abs(actualSnoozedUntilDuration - 1000) < 25);
        assertTrue(Math.abs(actualSnoozedUntilDuration - 1000) < 250);
        assertTrue(mSnoozeHelper.isSnoozed(
                UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
    }