From 852a1900b46fa94f8aa113133ff0348d53474233 Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Fri, 4 Oct 2024 11:52:07 +0800 Subject: [PATCH] Fix test --- tests/commands/test_startup_time.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/commands/test_startup_time.py b/tests/commands/test_startup_time.py index 6ffaa51c6..37e2eeea2 100644 --- a/tests/commands/test_startup_time.py +++ b/tests/commands/test_startup_time.py @@ -6,6 +6,9 @@ MAXIMUM_STARTUP_TIME = 0.5 def test_startup_time(): + # warm up to generate pyc + subprocess.run(["freqtrade", "-h"]) + start = time.time() subprocess.run(["freqtrade", "-h"]) elapsed = time.time() - start