This is an automated email from the ASF dual-hosted git repository.

amoghrajesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e024d4c15a5 Fix TimeSensor test failing when host time zone is ahead 
of UTC (#76901)
e024d4c15a5 is described below

commit e024d4c15a52a843c28aa773c2d5db69fe21deea
Author: Andrew Chang <[email protected]>
AuthorDate: Thu Nov 12 17:38:38 2026 +0800

    Fix TimeSensor test failing when host time zone is ahead of UTC (#76901)
---
 providers/standard/tests/unit/standard/sensors/test_time.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/standard/tests/unit/standard/sensors/test_time.py 
b/providers/standard/tests/unit/standard/sensors/test_time.py
index 2b44c61d474..070359c1cbd 100644
--- a/providers/standard/tests/unit/standard/sensors/test_time.py
+++ b/providers/standard/tests/unit/standard/sensors/test_time.py
@@ -101,7 +101,7 @@ class TestTimeSensor:
             assert op.target_datetime.time() == pendulum.time(1, 0)
             assert op.target_datetime.tzinfo == timezone.utc
 
-    @time_machine.travel("2020-07-07 00:00:00", tick=False)
+    @time_machine.travel("2020-07-07 00:00:00+00:00", tick=False)
     def test_task_is_deferred(self):
         with DAG(
             dag_id="test_task_is_deferred",

Reply via email to