Merge "Fix testGetAllNetworkStateSnapshots for non-cellular" into sc-dev am: 86a118c060
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15108489 Change-Id: I19519b91d29533ff459c14bca0038d6832db1da6
This commit is contained in:
@@ -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