From 5dccd8204ccdfeabe368619f64ab18e3310a9888 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Sat, 16 Mar 2024 21:16:18 +0100 Subject: [PATCH] Freeze time on profile test (#113618) --- tests/components/profiler/test_init.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/components/profiler/test_init.py b/tests/components/profiler/test_init.py index 8bb17e79b3f..2574f71a57b 100644 --- a/tests/components/profiler/test_init.py +++ b/tests/components/profiler/test_init.py @@ -7,6 +7,7 @@ import os from pathlib import Path from unittest.mock import patch +from freezegun.api import FrozenDateTimeFactory from lru import LRU import pytest @@ -99,7 +100,9 @@ async def test_memory_usage(hass: HomeAssistant, tmp_path: Path) -> None: async def test_object_growth_logging( - hass: HomeAssistant, caplog: pytest.LogCaptureFixture + hass: HomeAssistant, + caplog: pytest.LogCaptureFixture, + freezer: FrozenDateTimeFactory, ) -> None: """Test we can setup and the service and we can dump objects to the log."""