Skip to content

Commit

Permalink
Fix test server startup detection.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
b0661 authored and drbacke committed Oct 10, 2024
1 parent 05faf32 commit 54347ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54347ee

Please sign in to comment.