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:
TreeHugger Robot
2021-07-01 11:03:31 +00:00
committed by Automerger Merge Worker

View File

@@ -507,6 +507,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);