tests: Use higher limit on x86 macos to avoid random fails

This commit is contained in:
Matthias
2025-02-28 07:01:50 +01:00
parent f447de4840
commit 5b9102f9a8

View File

@@ -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)"
)