From 54347ee2406a4051df6fca354e181db8c481804d Mon Sep 17 00:00:00 2001 From: Bobby Noelte Date: Thu, 10 Oct 2024 12:59:33 +0200 Subject: [PATCH] Fix test server startup detection. Startup of the test server is detected by a scan on the server logging output to stdout. Startup is now detected on the late log output. Signed-off-by: Bobby Noelte --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 2a362c9a..58dfb079 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -31,13 +31,13 @@ class Starter(ProcessStarter): args = [sys.executable, "-m", "akkudoktoreosserver.flask_server"] # startup pattern - pattern = "Serving Flask app 'flask_server'" + pattern = "Debugger PIN:" # search the first 12 lines for the startup pattern, if not found # a RuntimeError will be raised informing the user max_read_lines = 12 # will wait for 10 seconds before timing out - timeout = 10 + timeout = 30 # xprocess will now attempt to clean up upon interruptions terminate_on_interrupt = True