From 053093441ed91a89ce20a609c78f58c582da6e0f Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 4 Oct 2024 12:13:00 +0100 Subject: [PATCH] Fix test --- tests/unit/core/samplers/test_cpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()