From 7848139a7eff25e225c6597245d387e676740a29 Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Sun, 1 Nov 2026 07:35:25 -0800 Subject: [PATCH] test(thumbnails): the stalled store call test runs without the probe (#603) note_failure() wakes the probe, which finds the healthy test folder again at once, so the next lookup could do store I/O and the test failed intermittently. --- tests/test_preview_store_folder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_preview_store_folder.py b/tests/test_preview_store_folder.py index a7632fdc..5e6eddd0 100644 --- a/tests/test_preview_store_folder.py +++ b/tests/test_preview_store_folder.py @@ -287,6 +287,9 @@ class TestUnavailableFolder(FolderModeCase): self.assertTrue(stray.exists()) async def test_a_stalled_store_call_marks_it_unreachable_and_stops_io(self): + # Without the probe: woken by the stall, it finds this healthy folder again + # at once, and the lookup below would rightly do store I/O. + self.assertTrue(preview_store.stop_probe()) make_png(self.output_dir / "m.png", size=(64, 64)) self.preview("m.png").write_bytes(b"x") ticks = iter([0.0, preview_store.IO_BUDGET + 1.0])