Skip to content

Commit

Permalink
Increase on-demand subtitles test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 committed Apr 23, 2024
1 parent 76ca352 commit a500c2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a500c2d

Please sign in to comment.