We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435819f commit bfe6430Copy full SHA for bfe6430
tests/test_faster_whisper.py
@@ -1,4 +1,5 @@
1
"""Tests for wyoming-faster-whisper"""
2
+
3
import asyncio
4
import re
5
import sys
@@ -18,6 +19,7 @@
18
19
_SAMPLES_PER_CHUNK = 1024
20
21
# Need to give time for the model to download
22
+_START_TIMEOUT = 60
23
_TRANSCRIBE_TIMEOUT = 60
24
25
@@ -44,7 +46,9 @@ async def test_faster_whisper() -> None:
44
46
# Check info
45
47
await async_write_event(Describe().event(), proc.stdin)
48
while True:
- event = await asyncio.wait_for(async_read_event(proc.stdout), timeout=1)
49
+ event = await asyncio.wait_for(
50
+ async_read_event(proc.stdout), timeout=_START_TIMEOUT
51
+ )
52
assert event is not None
53
54
if not Info.is_type(event.type):
0 commit comments