Skip to content

Commit 72ff096

Browse files
authored
ci: increase gap for moment (#2669)
Windows test has been flakey. Hopefully this will make those cleanup tests less flakey. Example: https://github.com/lancedb/lance/actions/runs/10185602507/job/28175515906
1 parent 3edfa50 commit 72ff096

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/python/tests/test_dataset.py

+3
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ def test_cleanup_old_versions(tmp_path):
602602
table = pa.Table.from_pydict({"a": range(100), "b": range(100)})
603603
base_dir = tmp_path / "test"
604604
lance.write_dataset(table, base_dir)
605+
time.sleep(0.1)
605606
moment = datetime.now()
606607
lance.write_dataset(table, base_dir, mode="overwrite")
607608

@@ -633,6 +634,7 @@ def test_cleanup_error_when_tagged_old_versions(tmp_path):
633634
base_dir = tmp_path / "test"
634635
lance.write_dataset(table, base_dir)
635636
lance.write_dataset(table, base_dir, mode="overwrite")
637+
time.sleep(0.1)
636638
moment = datetime.now()
637639
lance.write_dataset(table, base_dir, mode="overwrite")
638640

@@ -661,6 +663,7 @@ def test_cleanup_around_tagged_old_versions(tmp_path):
661663
base_dir = tmp_path / "test"
662664
lance.write_dataset(table, base_dir)
663665
lance.write_dataset(table, base_dir, mode="overwrite")
666+
time.sleep(0.1)
664667
moment = datetime.now()
665668
lance.write_dataset(table, base_dir, mode="overwrite")
666669

0 commit comments

Comments
 (0)