Skip to content

Commit ada8c97

Browse files
RohitJayachandran C
authored andcommitted
Wait longer for Telephony FW and RIL init before test execution
On some devices, the tests fail intermittently due to timing of Telephony FW and RIL initiatization before executing the tests. Added some delay before test execution mitigtes this issue. Bug: 295440528 Change-Id: I13ae63a6eb476da64579f11a80142be2dca23db9 Merged-In: I13ae63a6eb476da64579f11a80142be2dca23db9 Signed-off-by: Rohit <r.kothari@samsung.corp-partner.google.com>
1 parent 0e0b36f commit ada8c97

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)