Skip to content

Commit

Permalink
Fix test for hour update (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnanuti authored Mar 14, 2024
1 parent bf28ece commit 77c8f49
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def test_logging_to_file(
assert all(s in out for s in out_should_contain)
assert all(s not in out for s in out_should_not_contain)
files = os.listdir(log_dir)
assert len(files) == 1
# There will be two files if the hour changes while running the test
assert len(files) >= 1
log_file = os.path.join(log_dir, files[0])
assert os.path.isfile(log_file)
with open(log_file) as f:
Expand Down

0 comments on commit 77c8f49

Please sign in to comment.