Skip to content

Commit

Permalink
Fix flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Newton committed Jan 26, 2024
1 parent 3c0474d commit 204936f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adlfs/tests/test_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,10 @@ def test_time_info(storage):
)

creation_time = fs.created("data/root/d/file_with_metadata.txt")
assert creation_time == storage.insert_time
assert_almost_equal(creation_time, storage.insert_time, datetime.timedelta(seconds=1))

modified_time = fs.modified("data/root/d/file_with_metadata.txt")
assert modified_time == storage.insert_time
assert_almost_equal(modified_time, storage.insert_time, datetime.timedelta(seconds=1))


def test_find(storage):
Expand Down Expand Up @@ -763,7 +763,7 @@ def test_rm_recursive2(mock_delete_blob, storage):
)

assert "data/root" in fs.ls("/data")

fs.rm("data/root", recursive=True)
assert "data/root" not in fs.ls("/data")

Expand Down

0 comments on commit 204936f

Please sign in to comment.