diff --git a/tests/streaming/test_prepare.py b/tests/streaming/test_prepare.py index 2b7c541b..cfe3c277 100644 --- a/tests/streaming/test_prepare.py +++ b/tests/streaming/test_prepare.py @@ -26,6 +26,12 @@ class _FakeSoulseek: return True +@pytest.fixture(autouse=True) +def _no_sleep(monkeypatch): + """Keep stream-prep tests fast while still exercising the polling branches.""" + monkeypatch.setattr(sp.time, 'sleep', lambda *_args, **_kwargs: None) + + def _build_deps( *, state=None,