File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
tests/integrations/gateway Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 9
9
def test_integration_gateway (cli_runner : CliRunner ):
10
10
messages = routed_functions .MESSAGES
11
11
12
- gateway_url = f"https://{ utils .get_gateway_endpoint ()} "
12
+ gateway_domain = utils .get_gateway_endpoint ()
13
+ gateway_url = "https://" + gateway_domain
13
14
14
15
res = utils .run_deploy_command (
15
16
cli_runner ,
@@ -19,8 +20,9 @@ def test_integration_gateway(cli_runner: CliRunner):
19
20
assert res .exit_code == 0 , res .output
20
21
21
22
# Check general routing configuration
22
- resp = requests .get (
23
- url = gateway_url + "/health" , timeout = constants .COLD_START_TIMEOUT
23
+ # Wait as the gateway is not immediately available
24
+ resp = utils .wait_for_body_text (
25
+ domain_name = gateway_domain , body = messages ["/health" ]
24
26
)
25
27
assert resp .status_code == 200
26
28
assert resp .text == messages ["/health" ]
You can’t perform that action at this time.
0 commit comments