File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -258,36 +258,6 @@ async def test_frame_timing(self, monkeypatch):
258258 # Allow reasonable tolerance for asyncio.sleep() accuracy
259259 assert 15.0 <= interval_ms <= 25.0
260260
261- @pytest .mark .asyncio
262- async def test_timing_warning (self , caplog ):
263- """Test that timing warnings are logged correctly."""
264- track = AudioStreamTrack (sample_rate = 48000 , channels = 1 , format = "s16" )
265-
266- # Write data
267- samples = np .zeros (960 , dtype = np .int16 )
268- pcm = PcmData (
269- samples = samples ,
270- sample_rate = 48000 ,
271- format = AudioFormat .S16 ,
272- channels = 1 ,
273- )
274- await track .write (pcm )
275-
276- # Get first frame to initialize timing
277- await track .recv ()
278-
279- # Simulate delay before getting second frame
280- await asyncio .sleep (0.05 ) # 50ms delay
281-
282- # Get second frame - should trigger warning
283- with caplog .at_level ("WARNING" ):
284- await track .recv ()
285-
286- # Check that warning was logged
287- assert any (
288- "Frame timing issue detected" in record .message for record in caplog .records
289- )
290-
291261 @pytest .mark .asyncio
292262 async def test_continuous_streaming (self ):
293263 """Test continuous audio streaming scenario."""
You can’t perform that action at this time.
0 commit comments