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

Commit 08c09e0e authored by Grace Jia's avatar Grace Jia
Browse files

Fix flaky AnalyticsTests#testAnalyticsTwoCalls

Extended the call filter timeout limit to fix the flakiness in the test
cases.

Bug: 177148587
Test: TelecomUnitTests
Change-Id: Ieb452ec7289a5312e1087d9d25733d3a6e48adc4
parent d55b43a4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import android.content.ContentResolver;
import android.content.Context;
import android.os.Build;
import android.telecom.CallAudioState;
@@ -184,6 +185,8 @@ public class AnalyticsTests extends TelecomSystemTest {
    @MediumTest
    @Test
    public void testAnalyticsTwoCalls() throws Exception {
        when(mTimeoutsAdapter.getCallScreeningTimeoutMillis(any(ContentResolver.class)))
                .thenReturn((long) TEST_TIMEOUT);
        IdPair testCall1 = startAndMakeActiveIncomingCall(
                "650-555-1212",
                mPhoneAccountA0.getAccountHandle(),