Skip to content

Commit bfe6430

Browse files
committed
Increase start timeout
1 parent 435819f commit bfe6430

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_faster_whisper.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for wyoming-faster-whisper"""
2+
23
import asyncio
34
import re
45
import sys
@@ -18,6 +19,7 @@
1819
_SAMPLES_PER_CHUNK = 1024
1920

2021
# Need to give time for the model to download
22+
_START_TIMEOUT = 60
2123
_TRANSCRIBE_TIMEOUT = 60
2224

2325

@@ -44,7 +46,9 @@ async def test_faster_whisper() -> None:
4446
# Check info
4547
await async_write_event(Describe().event(), proc.stdin)
4648
while True:
47-
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+
)
4852
assert event is not None
4953

5054
if not Info.is_type(event.type):

0 commit comments

Comments
 (0)