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

Commit cb2b2ef7 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Skip ConnOnActivityStartTest and CoreSettingsObserverTest.

- ConnOnActivityStartTest is consistently failing because the device
doesn't have network connectivity. This test probably needs to be moved to a
different test suite but for now just skipping the tests.
- CoreSettingsObserverTest is failing because the test depends on a mock
settings provider but since the Settings class caches the provider
object, the test will end up using real settings provider and fails.

Bug: 38432755
Bug: 38433611
Test: N/A
Change-Id: I0504d9f0df14a0f952e32c8572eefe9ccfebfd2c
parent 01d5b3d2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import com.android.server.AppOpsService;

import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
@@ -58,6 +59,7 @@ import java.io.File;
 * Run: adb shell am instrument -e class com.android.server.am.CoreSettingsObserverTest -w \
 *     com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
 */
@Ignore
@SmallTest
@RunWith(AndroidJUnit4.class)
public class CoreSettingsObserverTest {
+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ import libcore.io.IoUtils;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

@@ -78,6 +79,7 @@ import java.util.concurrent.TimeUnit;
 * Run: adb shell am instrument -e class com.android.server.net.ConnOnActivityStartTest -w \
 *     com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
 */
@Ignore
@LargeTest
@RunWith(AndroidJUnit4.class)
public class ConnOnActivityStartTest {