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

Commit 53fa7d28 authored by Yanting Yang's avatar Yanting Yang
Browse files

Ignore failing tests of com.android.settings.deviceinfo.batteryinfo

Bug: 315267179
Test: post-submit
Change-Id: Ib209068325e4716026e4a9894f5e79ca15855aea
parent b85f4de6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import androidx.test.core.app.ApplicationProvider;
import com.android.settings.testutils.FakeFeatureFactory;

import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
@@ -75,6 +76,7 @@ public class BatteryFirstUseDatePreferenceControllerTest {
        assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE);
    }

    @Ignore("b/315267179")
    @Test
    public void getSummary_available_returnExpectedDate() {
        when(mFactory.batterySettingsFeatureProvider.isFirstUseDateAvailable(eq(mContext),
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import androidx.test.core.app.ApplicationProvider;
import com.android.settings.testutils.FakeFeatureFactory;

import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
@@ -76,6 +77,7 @@ public class BatteryManufactureDatePreferenceControllerTest {
        assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE);
    }

    @Ignore("b/315267179")
    @Test
    public void getSummary_available_returnExpectedDate() {
        when(mFactory.batterySettingsFeatureProvider.isManufactureDateAvailable(eq(mContext),