phi-friday commented on PR #41592:
URL: https://github.com/apache/airflow/pull/41592#issuecomment-2351540980

   After a recent rebase, I'm getting the following error, and I'm not sure why.
   
   ```shell
   _________ TestOtelMetrics.test_timer_start_and_stop_manually_send_true 
_________
   [gw2] linux -- Python 3.8.20 /usr/local/bin/python
   
   self = <tests.core.test_otel_logger.TestOtelMetrics object at 0x7f0c14b7e370>
   mock_time = <MagicMock name='perf_counter' id='139690224843072'>
   name = 'test_stats_run'
   
       @mock.patch.object(time, "perf_counter", side_effect=[0.0, 3.14])
       def test_timer_start_and_stop_manually_send_true(self, mock_time, name):
           timer = self.stats.timer(name)
           timer.start()
           # Perform some task
           timer.stop(send=True)
       
           assert isinstance(timer.duration, float)
   >       assert timer.duration == 3.14
   E       assert 3140.0 == 3.14
   E        +  where 3140.0 = <airflow.metrics.otel_logger._OtelTimer object at 
0x7f0c2a6999a0>.duration
   
   tests/core/test_otel_logger.py:327: AssertionError
   ```


-- 
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]

Reply via email to