Update CTS to have a more reasonable request completion time of 60 s for data throttling
Bug: 212769117
Test: make, atest android.telephony.cts.TelephonyManagerTest
Change-Id: Ie8f46c8120e4f361d82925358084530c45a7b893
Merged-In: Ie8f46c8120e4f361d82925358084530c45a7b893
diff --git a/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java b/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
index 55c8467..4ce70a9 100644
--- a/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
+++ b/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
@@ -4098,7 +4098,7 @@
TelephonyUtils.executeShellCommand(InstrumentationRegistry.getInstrumentation(),
cmdBuilder.toString());
- long arbitraryCompletionWindowSecs = 1L;
+ long arbitraryCompletionWindowMillis = 60000L;
boolean isDataThrottlingSupported = ShellIdentityUtils.invokeMethodWithShellPermissions(
mTelephonyManager, (tm) -> tm.isRadioInterfaceCapabilitySupported(
@@ -4115,7 +4115,7 @@
.setDataThrottlingRequest(new DataThrottlingRequest.Builder()
.setDataThrottlingAction(DataThrottlingRequest
.DATA_THROTTLING_ACTION_THROTTLE_SECONDARY_CARRIER)
- .setCompletionDurationMillis(arbitraryCompletionWindowSecs)
+ .setCompletionDurationMillis(arbitraryCompletionWindowMillis)
.build())
.build()));
@@ -4151,7 +4151,7 @@
DataThrottlingRequest
.DATA_THROTTLING_ACTION_HOLD)
.setCompletionDurationMillis(
- arbitraryCompletionWindowSecs)
+ arbitraryCompletionWindowMillis)
.build())
.build()));
} catch (IllegalArgumentException e) {