fix(memory): clean atomic write test hygiene
Made-with: Cursor
This commit is contained in:
1 parent
53ca2836e7
commit
3d7099b421
2 files changed
+11
-16
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user