Merge "Fix testGetAllNetworkStateSnapshots for non-cellular" am: ddf3660af8
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1749483 Change-Id: I426c10c8fd9a17c94423c8e0ddf9811a5cf2cd40
This commit is contained in:
@@ -500,6 +500,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