Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b1ede05 authored by Pranav Madapurmath's avatar Pranav Madapurmath
Browse files

Increased timeout in CallAudioRouteControllerTest

Test was flaking due to timing issues on aosp cf. Doubling the timeout in order for the call audio routing to go active. This is a speculative fix as there haven't been any Telecom changes that has caused increased flakiness in the test history.

Bug: 416683766
Flag: EXEMPT bug fix
Test: atest CallAudioRouteControllerTest
Change-Id: I44f1f1f8d1f1c40ed8e7569d45dd6b05efbaa742
parent 5047bef2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1694,10 +1694,10 @@ public class CallAudioRouteControllerTest extends TelecomTestCase {
    private void waitForRouteActiveStateAndVerify(boolean expectActive) {
        try {
            if (expectActive) {
                mController.getAudioActiveCompleteLatch().await(TEST_TIMEOUT,
                mController.getAudioActiveCompleteLatch().await(TEST_TIMEOUT * 2,
                        TimeUnit.MILLISECONDS);
            } else {
                mController.getAudioOperationsCompleteLatch().await(TEST_TIMEOUT,
                mController.getAudioOperationsCompleteLatch().await(TEST_TIMEOUT * 2,
                        TimeUnit.MILLISECONDS);
            }
        } catch (Exception e) {