From 2cc8351ff2721a11a8988dd6e42c2d2185b5893e Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 11 Oct 2024 14:10:40 +0200 Subject: [PATCH] Adjust more tests --- tests/api/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/api/__init__.py b/tests/api/__init__.py index 50b8d859a64..4a32171ffeb 100644 --- a/tests/api/__init__.py +++ b/tests/api/__init__.py @@ -7,6 +7,7 @@ from supervisor.host.const import LogFormat DEFAULT_LOG_RANGE = "entries=:-99:100" +DEFAULT_LOG_RANGE_FOLLOW = "entries=:-99:" async def common_test_api_advanced_logs( @@ -34,7 +35,7 @@ async def common_test_api_advanced_logs( journald_logs.assert_called_once_with( params={"SYSLOG_IDENTIFIER": syslog_identifier, "follow": ""}, - range_header=DEFAULT_LOG_RANGE, + range_header=DEFAULT_LOG_RANGE_FOLLOW, accept=LogFormat.JOURNAL, ) @@ -62,6 +63,6 @@ async def common_test_api_advanced_logs( "_BOOT_ID": "ccc", "follow": "", }, - range_header=DEFAULT_LOG_RANGE, + range_header=DEFAULT_LOG_RANGE_FOLLOW, accept=LogFormat.JOURNAL, )