fix(memory): clean atomic write test hygiene

Made-with: Cursor
This commit is contained in:
Xubin Ren authored and Xubin Ren committed 2026-04-29 16:57:50 +08:00
1 parent 53ca2836e7
commit 3d7099b421
2 files changed
+11 -16

No files matched your search

+1 -1
View File
@@ -369,7 +369,7 @@ class MemoryStore:
f.flush()
os.fsync(f.fileno())
os.replace(tmp_path, self.history_file)
# fsync the directory so the rename is durable.
# On Windows, opening a directory with O_RDONLY raises
# PermissionError — skip the dir sync there (NTFS