diff --git a/tests/unit/core/samplers/test_cpu.py b/tests/unit/core/samplers/test_cpu.py index 9f1c550a..8e8e4cd3 100644 --- a/tests/unit/core/samplers/test_cpu.py +++ b/tests/unit/core/samplers/test_cpu.py @@ -11,7 +11,7 @@ def test_run_negative_time_elapsed(caplog): cpu = Cpu() - cpu.last_run = dt.datetime.now() + dt.timedelta(days=100) + cpu.last_run = dt.datetime.now(dt.timezone.utc) + dt.timedelta(days=100) result = cpu.run()