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

Commit 35dbf35b authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Frameworks: Mark tests

Add @Ignore and @Test to make Errorprone happy.

Bug: 72076216
Test: m javac-check RUN_ERROR_PRONE=true
Test: atest ConnectivityServiceTest
Test: atest WifiManagerTest
Change-Id: Id2423c545eccaa768203faf86e14d0a558d927cd
parent 65609651
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -318,6 +318,7 @@ public class ConnectivityServiceTest {


    // This test has an inherent race condition in it, and cannot be enabled for continuous testing
    // This test has an inherent race condition in it, and cannot be enabled for continuous testing
    // or presubmit tests. It is kept for manual runs and documentation purposes.
    // or presubmit tests. It is kept for manual runs and documentation purposes.
    @Ignore
    public void verifyThatNotWaitingForIdleCausesRaceConditions() {
    public void verifyThatNotWaitingForIdleCausesRaceConditions() {
        // Bring up a network that we can use to send messages to ConnectivityService.
        // Bring up a network that we can use to send messages to ConnectivityService.
        ConditionVariable cv = waitForConnectivityBroadcasts(1);
        ConditionVariable cv = waitForConnectivityBroadcasts(1);
+1 −0
Original line number Original line Diff line number Diff line
@@ -599,6 +599,7 @@ public class WifiManagerTest {
    /**
    /**
     * Verify the watchLocalOnlyHotspot call goes to WifiServiceImpl.
     * Verify the watchLocalOnlyHotspot call goes to WifiServiceImpl.
     */
     */
    @Test
    public void testWatchLocalOnlyHotspot() throws Exception {
    public void testWatchLocalOnlyHotspot() throws Exception {
        TestLocalOnlyHotspotObserver observer = new TestLocalOnlyHotspotObserver();
        TestLocalOnlyHotspotObserver observer = new TestLocalOnlyHotspotObserver();