Skip to content

Commit

Permalink
Add small pause after server aliveness check
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
  • Loading branch information
astrojuanlu committed Dec 19, 2023
1 parent 0fdb81c commit 300c27b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion features/steps/cli_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import textwrap
from pathlib import Path
from time import time
from time import sleep, time

import behave
import requests
Expand Down Expand Up @@ -395,6 +395,8 @@ def wait_for_notebook_to_run(context, timeout):
while time() < timeout_start + timeout:
stdout = context.result.stdout.readline()
if "http://127.0.0.1:" in stdout:
# Take a breath, and declare success
sleep(1)
break

if time() >= timeout_start + timeout:
Expand Down

0 comments on commit 300c27b

Please sign in to comment.