Skip to content

Commit

Permalink
Debug
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 Jun 27, 2023
1 parent 66e410d commit 49a2790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/steps/cli_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def exec_notebook(context, command):
def wait_for_notebook_to_run(context, timeout):
timeout_start = time()
while time() < timeout_start + timeout:
stdout = context.result.stdout.readline()
stdout, _ = context.result.communicate(timeout=timeout)
if "http://127.0.0.1:" in stdout:
break

Expand All @@ -355,6 +355,7 @@ def wait_for_notebook_to_run(context, timeout):
@when('Wait until the process is finished for up to "{timeout:d}" seconds')
def wait(context, timeout):
"""Wait for child process to terminate."""
context.result.communicate()
context.result.wait(timeout)


Expand Down

0 comments on commit 49a2790

Please sign in to comment.