File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ async def recipe(ctx: RecipeContext) -> RecipeOutput:
6868
6969 # Get the tunnel URL for the server port
7070 tunnel_url = await devbox .get_tunnel_url (HTTP_SERVER_PORT )
71+ if tunnel_url is None :
72+ raise RuntimeError ("Failed to get tunnel URL after enabling tunnel" )
7173
7274 # Make an HTTP request from the LOCAL MACHINE through the tunnel to the devbox
7375 # This demonstrates that the tunnel allows external access to the devbox service
@@ -88,7 +90,9 @@ async def recipe(ctx: RecipeContext) -> RecipeOutput:
8890 ),
8991 ExampleCheck (
9092 name = "tunnel URL was constructed correctly" ,
91- passed = tunnel .tunnel_key in tunnel_url and str (HTTP_SERVER_PORT ) in tunnel_url ,
93+ passed = bool (
94+ tunnel .tunnel_key and tunnel .tunnel_key in tunnel_url and str (HTTP_SERVER_PORT ) in tunnel_url
95+ ),
9296 details = tunnel_url ,
9397 ),
9498 ExampleCheck (
Original file line number Diff line number Diff line change 77
88from typing import Any , Callable , cast
99
10- from .example_types import ExampleResult
1110from .devbox_tunnel import run_devbox_tunnel_example
11+ from .example_types import ExampleResult
1212from .mcp_github_tools import run_mcp_github_tools_example
1313from .blueprint_with_build_context import run_blueprint_with_build_context_example
1414from .devbox_from_blueprint_lifecycle import run_devbox_from_blueprint_lifecycle_example
You can’t perform that action at this time.
0 commit comments