Skip to content

Commit 85433d0

Browse files
Jayachandran CGerrit Code Review
authored andcommitted
Merge "Wait longer for Telephony FW and RIL init before test execution" into android13-tests-dev
2 parents 961c516 + ada8c97 commit 85433d0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTestOnMockModem.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ public static void beforeAllTests() throws Exception {
8282
sMockModemManager = new MockModemManager();
8383
assertNotNull(sMockModemManager);
8484
assertTrue(sMockModemManager.connectMockModemService());
85+
86+
final PackageManager pm = getContext().getPackageManager();
87+
if (pm.hasSystemFeature(PackageManager.FEATURE_WATCH)) {
88+
//Wait for Telephony FW and RIL initialization are done
89+
TimeUnit.SECONDS.sleep(4);
90+
}
8591
}
8692

8793
@AfterClass

0 commit comments

Comments
 (0)