Skip to content

Commit

Permalink
Increased Flask wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
ciioprof0 committed Aug 18, 2024
1 parent 711e5af commit 0408206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ling508/tests/test_95_e2e_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def init_driver():

def run_flask_app():
"""Start the Flask app in a separate process."""
app.run(debug=False, use_reloader=False)
app.run(host="0.0.0.0", port=5000, debug=False, use_reloader=False)

def wait_for_flask():
"""Wait until the Flask app is responsive."""
for _ in range(10): # Retry 10 times with 1-second intervals
for _ in range(30): # Retry 30 times with 1-second intervals
try:
response = requests.get("http://localhost:5000/")
if response.status_code == 200:
Expand Down

0 comments on commit 0408206

Please sign in to comment.