We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf28ece commit 77c8f49Copy full SHA for 77c8f49
s3torchconnectorclient/python/tst/integration/test_logging.py
@@ -152,7 +152,8 @@ def test_logging_to_file(
152
assert all(s in out for s in out_should_contain)
153
assert all(s not in out for s in out_should_not_contain)
154
files = os.listdir(log_dir)
155
- assert len(files) == 1
+ # There will be two files if the hour changes while running the test
156
+ assert len(files) >= 1
157
log_file = os.path.join(log_dir, files[0])
158
assert os.path.isfile(log_file)
159
with open(log_file) as f:
0 commit comments