Fix testGetAllNetworkStateSnapshots for non-cellular
bug: 192115694 Test: atest ConnectivityManagerTest#testGetAllNetworkStateSnapshots Change-Id: Ie7f637248302f3e6b61be69ef4c6a7a906e69275
This commit is contained in:
@@ -464,6 +464,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