roykoand commented on code in PR #77451:
URL: https://github.com/apache/airflow/pull/77451#discussion_r4654659264
##########
airflow-core/tests/unit/utils/log/test_file_processor_handler.py:
##########
@@ -89,6 +90,24 @@ def test_symlink_latest_log_directory(self):
assert os.path.basename(os.path.realpath(link)) == date2
assert os.path.exists(os.path.join(link, "log2"))
+ @mock.patch.object(FileProcessorHandler, "_symlink_latest_log_directory",
autospec=True)
+ def test_symlink_not_refreshed_within_same_day(self, mock_symlink):
Review Comment:
@SameerMesiah97 Thank your for the quick review!
Added the exact-midnight and second-call-on-the-new-day cases, and the test
now crosses a year boundary. DST doesn't apply since both the check and the log
folders use UTC.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]