mirror of
https://github.com/zensical/zensical.git
synced 2026-10-09 06:11:24 +00:00
feature: add audio and video media extension
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
1 parent
76628535c2
commit
00fe88abf7
6 files changed
+867
-2
No files matched your search
+6
-2
@@ -482,8 +482,12 @@ def test_serve_discovers_added_renamed_and_removed_modules(
|
||||
def wait_for(condition: Callable[[], bool]) -> None:
|
||||
deadline = time.monotonic() + 15
|
||||
while time.monotonic() < deadline:
|
||||
if condition():
|
||||
return
|
||||
try:
|
||||
if condition():
|
||||
return
|
||||
except FileNotFoundError:
|
||||
# A rebuild can remove output between checking and reading.
|
||||
pass
|
||||
if process.poll() is not None:
|
||||
break
|
||||
time.sleep(0.02)
|
||||
|
||||
Reference in new issue
Block a user