Skip to content

Commit 910dc4f

Browse files
committed
Update url & string check
Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com>
1 parent de3b3ec commit 910dc4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kedro-docker/features/steps/cli_steps.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def _check_service_up(context: behave.runner.Context, url: str, string: str):
9494
string: The string to be checked.
9595
"""
9696
data = download_url(url)
97-
9897
try:
9998
assert context.result.poll() is None
10099
assert string in data
@@ -340,14 +339,14 @@ def check_jupyter_nb_proc_on_port(
340339
command: Jupyter command message to check
341340
port: Port to check
342341
"""
343-
url = f"http://localhost:{int(port)}?token=test-token-abc123"
342+
url = f"http://localhost:{int(port)}/api?token=test-token-abc123"
344343
wait_for(
345344
func=_check_service_up,
346345
expected_result=None,
347346
print_error=False,
348347
context=context,
349348
url=url,
350-
string=f"Jupyter {command}",
349+
string="version",
351350
timeout_=15,
352351
)
353352

0 commit comments

Comments
 (0)