From 5b9102f9a81739a496b3950fd43a7fd0dcde6964 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 28 Feb 2025 07:01:50 +0100 Subject: [PATCH] tests: Use higher limit on x86 macos to avoid random fails --- tests/commands/test_startup_time.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/commands/test_startup_time.py b/tests/commands/test_startup_time.py index 08856a636..5e9b369d8 100644 --- a/tests/commands/test_startup_time.py +++ b/tests/commands/test_startup_time.py @@ -1,8 +1,10 @@ import subprocess import time +from tests.conftest import is_arm, is_mac -MAXIMUM_STARTUP_TIME = 0.5 + +MAXIMUM_STARTUP_TIME = 0.7 if is_mac() and not is_arm() else 0.5 def test_startup_time(): @@ -14,4 +16,5 @@ def test_startup_time(): elapsed = time.time() - start assert elapsed < MAXIMUM_STARTUP_TIME, ( "The startup time is too long, try to use lazy import in the command entry function" + f" (maximum {MAXIMUM_STARTUP_TIME}s, got {elapsed}s)" )