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

Commit 7eb56cec authored by Andrew Lee's avatar Andrew Lee Committed by Android (Google) Code Review
Browse files

Merge "Fix VoicemailPlaybackTest flakiness." into mnc-dev

parents 2685412e 81e53bd5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -109,6 +109,7 @@ public class VoicemailPlaybackTest extends InstrumentationTestCase {
        // There is a background check that is testing to see if we have the content available.
        // Once that task completes, we shouldn't be showing the fetching message.
        mFakeAsyncTaskExecutor.runTask(CHECK_FOR_CONTENT);
        getInstrumentation().waitForIdleSync();

        assertHasOneTextViewContaining("Buffering");
        assertHasZeroTextViewsContaining("Loading voicemail");
@@ -119,6 +120,7 @@ public class VoicemailPlaybackTest extends InstrumentationTestCase {
        setPlaybackViewForPresenter();

        mFakeAsyncTaskExecutor.runTask(CHECK_FOR_CONTENT);
        getInstrumentation().waitForIdleSync();

        // The media player will have thrown an IOException since the file doesn't exist.
        // This should have put a failed to play message on screen, buffering is gone.