Skip to content

Commit

Permalink
sleepier
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbull committed Jun 8, 2024
1 parent 463c0c7 commit 9943640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,12 @@ def test_environment_variables_force_overwrite_to(rig: CloudProviderTestRig, tmp

new_local.write_text("updated")

sleep(0.01)
sleep(0.01) # give time so not equal when rounded
p.write_text("updated")

orig_cloud_mod_time = p.stat().st_mtime

sleep(0.01)
sleep(0.51)

assert p.stat().st_mtime >= new_local.stat().st_mtime # would raise if not set
p._upload_file_to_cloud(new_local)
Expand Down

0 comments on commit 9943640

Please sign in to comment.