Skip to content

Commit

Permalink
assert instead of sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
shyba committed May 7, 2021
1 parent 45f2043 commit 9582e22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/lbrynet_daemon/test_exchange_rate_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ class ExchangeRateManagerTests(AsyncioTestCase):
async def test_get_rate_failure_retrieved(self):
manager = ExchangeRateManager([BadMarketFeed])
manager.start()
await asyncio.sleep(1)
await manager.wait()
for feed in manager.market_feeds: # no rate but it tried
self.assertFalse(feed.has_rate)
self.assertTrue(feed.event.is_set())
self.addCleanup(manager.stop)

async def test_median_rate_used(self):
Expand Down

0 comments on commit 9582e22

Please sign in to comment.