Skip to content

Commit 7760ebb

Browse files
Merge pull request #8861 from ThomasWaldmann/tests-fix-ts-granularity
tests: fix diff cmd test on macOS HFS+, fixes #8860
2 parents 39b847a + b4c4bf0 commit 7760ebb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/borg/testsuite/archiver/diff_cmd_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def test_basic_functionality(archivers, request):
5353
create_regular_file(archiver.input_path, "file_replaced", contents=b"0" * 4096)
5454
os.unlink("input/file_removed")
5555
os.unlink("input/file_removed2")
56+
time.sleep(1) # macOS HFS+ has a 1s timestamp granularity
5657
Path("input/file_touched").touch()
5758
os.rmdir("input/dir_replaced_with_file")
5859
create_regular_file(archiver.input_path, "dir_replaced_with_file", size=8192)

0 commit comments

Comments
 (0)