Increase on-demand subtitles test timeout (#1405)

This commit is contained in:
JonnyWong16 2024-04-22 21:29:31 -07:00 committed by GitHub
parent 76ca35219a
commit 4f6723c072
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -440,7 +440,11 @@ def test_video_Movie_on_demand_subtitles(movie, account):
subtitle = subtitles[0]
movie.downloadSubtitles(subtitle)
utils.wait_until(lambda: len(movie.reload().subtitleStreams()) > len(movie_subtitles))
utils.wait_until(
lambda: len(movie.reload().subtitleStreams()) > len(movie_subtitles),
delay=0.5,
timeout=5,
)
subtitle_sourceKeys = {stream.sourceKey: stream for stream in movie.subtitleStreams()}
assert subtitle.sourceKey in subtitle_sourceKeys