Compare commits

...
Author SHA1 Message Date
Vito Sansevero 7848139a7e 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.
2026-11-01 07:35:25 -08:00
+3
View File
@@ -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])