Skip to content

Commit

Permalink
fix layout test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Sep 4, 2020
1 parent a703d5f commit e9b83ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_core/test_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ def AnElement():

await layout.render()
try:
asyncio.wait_for(
[layout.render()],
await asyncio.wait_for(
layout.render(),
timeout=0.1, # this should have been plenty of time
)
except asyncio.CancelledError:
except asyncio.TimeoutError:
pass # the render should still be rendering since we only update once

assert run_count.current == 2

0 comments on commit e9b83ea

Please sign in to comment.