summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2023-04-20 12:51:03 -0700
committerTim Burke <tim.burke@gmail.com>2023-04-20 12:51:06 -0700
commit105727bc8961e1cd263d0edd00c7f9ce46dacd2c (patch)
treebb46e64916572c2c9ebf69fd3a910c90031bb73a /test
parent4b6f54d063c33e13ced7d6dd5208921680f56ca6 (diff)
downloadswift-105727bc8961e1cd263d0edd00c7f9ce46dacd2c.tar.gz
tests: Fix test_cleanup_ondisk_files_commit_window
`much_older` has to be much older than `older`, or the test gets flakey. See - test_cleanup_ondisk_files_reclaim_non_data_files, - test_cleanup_ondisk_files_reclaim_with_data_files, and - test_cleanup_ondisk_files_reclaim_with_data_files_legacy_durable for a more standard definition of "much_older". Closes-Bug: #2017024 Change-Id: I1eaa501827f4475ddc0c20d82cf0a6d4a5e98f75
Diffstat (limited to 'test')
-rw-r--r--test/unit/obj/test_diskfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/obj/test_diskfile.py b/test/unit/obj/test_diskfile.py
index 8d3a484b7..327d860e5 100644
--- a/test/unit/obj/test_diskfile.py
+++ b/test/unit/obj/test_diskfile.py
@@ -2810,7 +2810,7 @@ class TestECDiskFileManager(DiskFileManagerMixin, BaseTestCase):
def test_cleanup_ondisk_files_commit_window(self):
# verify that non-durable files are not reclaimed regardless of
# timestamp if written to disk within commit_window
- much_older = Timestamp(time() - 1001).internal
+ much_older = Timestamp(time() - 2000).internal
older = Timestamp(time() - 1001).internal
newer = Timestamp(time() - 900).internal
scenarios = [