Skip to content

Commit 9412f24

Browse files
committed
test: increase delay to 1 second to avoid SSL errors in WebSocket connections
1 parent 267f88e commit 9412f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_tts_websocket_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def text_stream():
5353
save_audio(audio_chunks, f"test_websocket_model_{model}.mp3")
5454

5555
# Brief delay to avoid SSL errors when opening next WebSocket connection
56-
time.sleep(0.3)
56+
time.sleep(1.0)
5757

5858
def test_websocket_streaming_with_wav_format(self, client, save_audio):
5959
"""Test WebSocket streaming with WAV format."""
@@ -246,7 +246,7 @@ async def text_stream():
246246
save_audio(audio_chunks, f"test_async_websocket_model_{model}.mp3")
247247

248248
# Brief delay to avoid SSL errors when opening next WebSocket connection
249-
await asyncio.sleep(0.3)
249+
await asyncio.sleep(1.0)
250250

251251
@pytest.mark.asyncio
252252
async def test_async_websocket_streaming_with_format(

0 commit comments

Comments
 (0)