Skip to content

Commit bd5ca9d

Browse files
committed
remove useless test
1 parent a7483bd commit bd5ca9d

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

tests/test_audio_stream_track.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff 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."""

0 commit comments

Comments
 (0)