test: add small wait to reduce test flakyness

This commit is contained in:
Matthias
2025-01-20 10:25:27 +01:00
committed by GitHub
parent 47a86c3d54
commit 9158a3d7d9

View File

@@ -101,6 +101,7 @@ async def test_exchangews_ohlcv(mocker, time_machine):
time_machine.shift(timedelta(minutes=5))
await asyncio.sleep(0.1)
exchange_ws.schedule_ohlcv("ETH/BTC", "1m", CandleType.SPOT)
await asyncio.sleep(0.1)
# XRP/BTC should be cleaned up.
assert exchange_ws._klines_watching == {
("ETH/BTC", "1m", CandleType.SPOT),