test: add small wait to reduce test flakyness
This commit is contained in:
@@ -101,6 +101,7 @@ async def test_exchangews_ohlcv(mocker, time_machine):
|
|||||||
time_machine.shift(timedelta(minutes=5))
|
time_machine.shift(timedelta(minutes=5))
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
exchange_ws.schedule_ohlcv("ETH/BTC", "1m", CandleType.SPOT)
|
exchange_ws.schedule_ohlcv("ETH/BTC", "1m", CandleType.SPOT)
|
||||||
|
await asyncio.sleep(0.1)
|
||||||
# XRP/BTC should be cleaned up.
|
# XRP/BTC should be cleaned up.
|
||||||
assert exchange_ws._klines_watching == {
|
assert exchange_ws._klines_watching == {
|
||||||
("ETH/BTC", "1m", CandleType.SPOT),
|
("ETH/BTC", "1m", CandleType.SPOT),
|
||||||
|
|||||||
Reference in New Issue
Block a user