Skip to content

Commit e9b83ea

Browse files
committed
fix layout test
1 parent a703d5f commit e9b83ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_core/test_layout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ def AnElement():
234234

235235
await layout.render()
236236
try:
237-
asyncio.wait_for(
238-
[layout.render()],
237+
await asyncio.wait_for(
238+
layout.render(),
239239
timeout=0.1, # this should have been plenty of time
240240
)
241-
except asyncio.CancelledError:
241+
except asyncio.TimeoutError:
242242
pass # the render should still be rendering since we only update once
243243

244244
assert run_count.current == 2

0 commit comments

Comments
 (0)