mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
Increase on-demand subtitles test timeout (#1405)
This commit is contained in:
parent
76ca35219a
commit
4f6723c072
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue