chore: fix tests
Fixed the use of `asyncio.Event` in `VADAgent` breaking tests.
This commit is contained in:
@@ -61,7 +61,7 @@ async def simulate_streaming_with_probabilities(streaming, probabilities: list[f
|
||||
return None
|
||||
|
||||
streaming.audio_in_poller = DummyPoller(chunks, streaming)
|
||||
streaming._ready = True
|
||||
streaming._ready = AsyncMock()
|
||||
streaming._running = True
|
||||
|
||||
await streaming._streaming_loop()
|
||||
@@ -116,7 +116,7 @@ async def test_no_data(audio_out_socket, vad_agent):
|
||||
|
||||
vad_agent.audio_out_socket = audio_out_socket
|
||||
vad_agent.audio_in_poller = DummyPoller()
|
||||
vad_agent._ready = True
|
||||
vad_agent._ready = AsyncMock()
|
||||
vad_agent._running = True
|
||||
|
||||
await vad_agent._streaming_loop()
|
||||
|
||||
Reference in New Issue
Block a user