diff --git a/tests/command_palette/test_no_results.py b/tests/command_palette/test_no_results.py index de4956262f..8328853b83 100644 --- a/tests/command_palette/test_no_results.py +++ b/tests/command_palette/test_no_results.py @@ -18,7 +18,9 @@ async def test_no_results() -> None: assert results.visible is False assert results.option_count == 0 await pilot.press("a") - await pilot.pause(delay=CommandPalette._NO_MATCHES_COUNTDOWN) + # https://github.com/Textualize/textual/issues/3700 -- note the + # little bit of wiggle room to allow for Windows. + await pilot.pause(delay=CommandPalette._NO_MATCHES_COUNTDOWN + 0.1) assert results.visible is True assert results.option_count == 1 assert "No matches found" in str(results.get_option_at_index(0).prompt)