mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
Ensure disk cache is cleared
This commit is contained in:
parent
12604072fc
commit
625f0f77bb
@ -267,6 +267,10 @@ class TestGraphics(BaseTest):
|
|||||||
check_data()
|
check_data()
|
||||||
dc.clear()
|
dc.clear()
|
||||||
|
|
||||||
|
st = time.monotonic()
|
||||||
|
while dc.size_on_disk() and time.monotonic() - st < 20:
|
||||||
|
time.sleep(0.01)
|
||||||
|
self.assertEqual(dc.size_on_disk(), 0)
|
||||||
for frame in range(32):
|
for frame in range(32):
|
||||||
add(f'1:{frame}', f'{frame:02d}' * 8)
|
add(f'1:{frame}', f'{frame:02d}' * 8)
|
||||||
dc.wait_for_write()
|
dc.wait_for_write()
|
||||||
|
Loading…
Reference in New Issue
Block a user