Skip to content

Commit

Permalink
chore: try fix random test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Jan 20, 2025
1 parent a3b1428 commit fc1feb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/exchange/test_exchange_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ async def sleeper(*args, **kwargs):
assert exchange_ws._klines_watching == {
("ETH/BTC", "1m", CandleType.SPOT),
}
# Cleanup happened.
await asyncio.sleep(0.1)
exchange_ws.schedule_ohlcv("ETH/BTC", "1m", CandleType.SPOT)
assert exchange_ws._klines_scheduled == {
("ETH/BTC", "1m", CandleType.SPOT),
("XRP/BTC", "1m", CandleType.SPOT),
}

finally:
Expand Down

0 comments on commit fc1feb9

Please sign in to comment.