Skip to content

Commit 370a0bd

Browse files
godlygeekpablogsal
authored andcommitted
tests: Add a longer pause in TUI snapshot tests
We've seen test flakiness caused by the Textual tests for the Memray TUI failing to completely resize the window to accommodate scroll bars at the point where the snapshot is captured. This is a work around, not a fix, but we should be able to make this scenario less likely to be observed by guaranteeing that we sleep for some minimum amount of time. Signed-off-by: Pablo Galindo <[email protected]> Signed-off-by: Matt Wozniski <[email protected]>
1 parent e567c3c commit 370a0bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/test_tui_reporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ async def run_before_wrapper(pilot) -> None:
116116
await result
117117

118118
await pilot.pause()
119+
await pilot.pause(0.2)
119120
header = pilot.app.screen.query_one("Header")
120121
header.last_update = header.start + datetime.timedelta(seconds=42)
121122

0 commit comments

Comments
 (0)