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

Commit edbd1c40 authored by Jack Yu's avatar Jack Yu
Browse files

Fixed the broken tests

Fix: 230012050
Test: atest DataNetworkTest
Change-Id: Id2c5b20d98cfba9e0ebafeb0331ebf76160640bd
parent 5ecb8b7d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1873,6 +1873,8 @@ public class DataNetwork extends StateMachine {
            removeUnsatisfiedNetworkRequests();
            mDataNetworkCallback.invokeFromExecutor(() -> mDataNetworkCallback
                    .onNetworkCapabilitiesChanged(DataNetwork.this));
        } else {
            log("updateNetworkCapabilities: Capabilities not changed.");
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -1143,7 +1143,7 @@ public class DataNetworkTest extends TelephonyTest {
        assertThat(mDataNetworkUT.getNetworkCapabilities().hasCapability(
                NetworkCapabilities.NET_CAPABILITY_TEMPORARILY_NOT_METERED)).isFalse();

        doReturn(Set.of(TelephonyManager.NETWORK_TYPE_LTE)).when(mDataNetworkController)
        doReturn(Set.of(TelephonyManager.NETWORK_TYPE_UMTS)).when(mDataNetworkController)
                .getUnmeteredOverrideNetworkTypes();
        mDataNetworkUT.sendMessage(1/*EVENT_DATA_CONFIG_UPDATED*/);