Skip to content

Commit 77c8f49

Browse files
authored
Fix test for hour update (#188)
1 parent bf28ece commit 77c8f49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

s3torchconnectorclient/python/tst/integration/test_logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ def test_logging_to_file(
152152
assert all(s in out for s in out_should_contain)
153153
assert all(s not in out for s in out_should_not_contain)
154154
files = os.listdir(log_dir)
155-
assert len(files) == 1
155+
# There will be two files if the hour changes while running the test
156+
assert len(files) >= 1
156157
log_file = os.path.join(log_dir, files[0])
157158
assert os.path.isfile(log_file)
158159
with open(log_file) as f:

0 commit comments

Comments
 (0)