Merge "Fix testGetAllNetworkStateSnapshots for non-cellular" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
86a118c060
@@ -507,6 +507,7 @@ public class ConnectivityManagerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testGetAllNetworkStateSnapshots()
|
public void testGetAllNetworkStateSnapshots()
|
||||||
throws InterruptedException {
|
throws InterruptedException {
|
||||||
|
assumeTrue(mPackageManager.hasSystemFeature(FEATURE_TELEPHONY));
|
||||||
// Make sure cell is active to retrieve IMSI for verification in later step.
|
// Make sure cell is active to retrieve IMSI for verification in later step.
|
||||||
final Network cellNetwork = mCtsNetUtils.connectToCell();
|
final Network cellNetwork = mCtsNetUtils.connectToCell();
|
||||||
final String subscriberId = getSubscriberIdForCellNetwork(cellNetwork);
|
final String subscriberId = getSubscriberIdForCellNetwork(cellNetwork);
|
||||||
|
|||||||
Reference in New Issue
Block a user