summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-15 20:48:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-15 20:48:23 +0000
commit7eb56cec2df622a012f1f164934d67cb555bbc7c (patch)
tree7c6d32e8bb4c2c18019b0ea9913ac0288076379b /tests
parent2685412eb75941e3929c2cf4d515f621abbfa552 (diff)
parent81e53bd51ea3b68de2a088386f8237debcefdc6d (diff)
downloadandroid_packages_apps_Dialer-7eb56cec2df622a012f1f164934d67cb555bbc7c.tar.gz
android_packages_apps_Dialer-7eb56cec2df622a012f1f164934d67cb555bbc7c.tar.bz2
android_packages_apps_Dialer-7eb56cec2df622a012f1f164934d67cb555bbc7c.zip
Merge "Fix VoicemailPlaybackTest flakiness." into mnc-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java b/tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java
index dd86b0d6f..96ef62abf 100644
--- a/tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java
+++ b/tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java
@@ -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.