Fix testGetAllNetworkStateSnapshots for non-cellular
bug: 192115694 Test: atest ConnectivityManagerTest#testGetAllNetworkStateSnapshots Original-Change: https://android-review.googlesource.com/1749483 Merged-In: Ie7f637248302f3e6b61be69ef4c6a7a906e69275 Change-Id: Ie7f637248302f3e6b61be69ef4c6a7a906e69275
This commit is contained in:
committed by
Junyu Lai
parent
424ef2043c
commit
21ec633e39
@@ -506,6 +506,7 @@ public class ConnectivityManagerTest {
|
||||
@Test
|
||||
public void testGetAllNetworkStateSnapshots()
|
||||
throws InterruptedException {
|
||||
assumeTrue(mPackageManager.hasSystemFeature(FEATURE_TELEPHONY));
|
||||
// Make sure cell is active to retrieve IMSI for verification in later step.
|
||||
final Network cellNetwork = mCtsNetUtils.connectToCell();
|
||||
final String subscriberId = getSubscriberIdForCellNetwork(cellNetwork);
|
||||
|
||||
Reference in New Issue
Block a user