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 <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte 2024-10-10 12:59:33 +02:00 committed by Andreas
parent be0ab5e297
commit 6cf1215ba1

View File

@ -31,13 +31,13 @@ def server(xprocess):
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