Give the test some more time

Also, use 30sec to prevent passing because of playback finished instead of skipping
This commit is contained in:
ByteHamster 2019-12-01 23:06:59 +01:00
parent e51a107083
commit 75754ba0f8
1 changed files with 2 additions and 1 deletions

View File

@ -287,6 +287,7 @@ public abstract class PlaybackTest {
setSmartMarkAsPlayedPreference(60); setSmartMarkAsPlayedPreference(60);
// ensure when an episode is skipped, it is removed due to smart as played // ensure when an episode is skipped, it is removed due to smart as played
setSkipKeepsEpisodePreference(false); setSkipKeepsEpisodePreference(false);
uiTestUtils.setMediaFileName("30sec.mp3");
uiTestUtils.addLocalFeedData(true); uiTestUtils.addLocalFeedData(true);
int fiIdx; int fiIdx;
@ -304,7 +305,7 @@ public abstract class PlaybackTest {
// assert item no longer in queue (needs to wait till skip is asynchronously processed) // assert item no longer in queue (needs to wait till skip is asynchronously processed)
Awaitility.await() Awaitility.await()
.atMost(1000, MILLISECONDS) .atMost(3000, MILLISECONDS)
.until(() -> !DBReader.getQueue().contains(feedItem)); .until(() -> !DBReader.getQueue().contains(feedItem));
assertTrue(DBReader.getFeedItem(feedItem.getId()).isPlayed()); assertTrue(DBReader.getFeedItem(feedItem.getId()).isPlayed());
} }