Commit 68b0f95
fix(tests): unblock AudioProcessingTrack recv() silence tests (#1022)
## Summary
- CI test runs were timing out at ~2h (recent runs cancelled at 1h43m /
1h56m / 2h0m). Root cause: PR #1001 ("Delay A/V in WebRTC until both
tracks have been seen.") changed `AudioProcessingTrack.recv()` so the
first call now blocks in `_wait_for_initial_audio()` until enough audio
has been buffered, but three tests in
`tests/test_audio_processing_track.py` still constructed tracks with
`started=False` and fed no / insufficient / paused audio — so `recv()`
looped forever.
- Drop `started=False` from the silence-fallback tests
(`test_no_audio_returns_silence`, `test_paused_returns_silence`,
`test_undersized_chunk_returns_silence`) so they exercise the
post-anchor `recv()` path, which is the path these silence-fallback
assertions actually care about.
- Local `pytest` now completes in ~70s instead of hanging.
## Test plan
- [x] `uv run pytest tests/test_audio_processing_track.py -v` — 30/30
pass in ~1.2s
- [x] `uv run pytest` — full suite completes in ~70s (vs. previously
hanging on `test_no_audio_returns_silence`)
- [x] `uv run ruff check tests/test_audio_processing_track.py` clean
- [x] `uv run ruff format --check tests/test_audio_processing_track.py`
clean
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: Rafał Leszko <rafal@livepeer.org>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9b7bae6 commit 68b0f95
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
0 commit comments