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

Commit 52c9c26a authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Disable flaky test under Ravenwood.

Bug: 315872700
Test: atest --rerun-until-failure 1000 FrameworksCoreTestsRavenwood
Test: atest --rerun-until-failure 1000 FrameworksUtilTestsRavenwood
Change-Id: I937e2934a031b84d08bad80b111e41f80830d9e8
parent 1772ec3a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.os;

import android.platform.test.annotations.IgnoreUnderRavenwood;
import android.platform.test.ravenwood.RavenwoodRule;

import androidx.test.filters.MediumTest;
@@ -153,6 +154,7 @@ public class MessageQueueTest {

    @Test
    @MediumTest
    @IgnoreUnderRavenwood(reason = "Flaky test, b/315872700")
    public void testFieldIntegrity() throws Exception {

        TestHandlerThread tester = new TestFieldIntegrityHandler() {
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ public class SparseSetArrayTest {
    public final RavenwoodRule mRavenwood = new RavenwoodRule();

    @Test
    @IgnoreUnderRavenwood(reason = "Flaky test, b/315872700")
    public void testAddAll() {
        final SparseSetArray<Integer> sparseSetArray = new SparseSetArray<>();

+10 −0
Original line number Diff line number Diff line
@@ -18,8 +18,12 @@ package android.util;

import static org.junit.Assert.assertEquals;

import android.platform.test.annotations.IgnoreUnderRavenwood;
import android.platform.test.ravenwood.RavenwoodRule;

import androidx.test.runner.AndroidJUnit4;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

@@ -29,6 +33,9 @@ import java.util.function.Consumer;

@RunWith(AndroidJUnit4.class)
public class TimeUtilsTest {
    @Rule
    public final RavenwoodRule mRavenwood = new RavenwoodRule();

    public static final long SECOND_IN_MILLIS = 1000;
    public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60;
    public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60;
@@ -78,6 +85,7 @@ public class TimeUtilsTest {
    }

    @Test
    @IgnoreUnderRavenwood(reason = "Flaky test, b/315872700")
    public void testDumpTime() {
        assertEquals("2023-01-01 00:00:00.000", runWithPrintWriter((pw) -> {
            TimeUtils.dumpTime(pw, 1672556400000L);
@@ -91,6 +99,7 @@ public class TimeUtilsTest {
    }

    @Test
    @IgnoreUnderRavenwood(reason = "Flaky test, b/315872700")
    public void testFormatForLogging() {
        assertEquals("unknown", TimeUtils.formatForLogging(0));
        assertEquals("unknown", TimeUtils.formatForLogging(-1));
@@ -99,6 +108,7 @@ public class TimeUtilsTest {
    }

    @Test
    @IgnoreUnderRavenwood(reason = "Flaky test, b/315872700")
    public void testLogTimeOfDay() {
        assertEquals("01-01 00:00:00.000", TimeUtils.logTimeOfDay(1672556400000L));
    }