Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
test: fix macos functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Oct 17, 2023
1 parent 9a557b1 commit 920c158
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/functional/test_plex_plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# standard imports
import os
import time


def _check_themes(movies):
Expand All @@ -16,7 +17,15 @@ def test_plugin_los(plugin_logs):


def test_plugin_log_file(plugin_log_file):
assert os.path.isfile(plugin_log_file), "Plugin log file not found: {}".format(plugin_log_file)
found = False
count = 0
while not found and count < 60: # plugin takes a little while to start on macOS
count += 1
if os.path.isfile(plugin_log_file):
found = True
else:
time.sleep(1)
assert found, "After 60 seconds, plugin log file not found: {}".format(plugin_log_file)


def test_plugin_log_file_exceptions(plugin_log_file):
Expand Down

0 comments on commit 920c158

Please sign in to comment.