Skip to content

Commit 2d05f71

Browse files
committed
fix: make curlMtlsProxy retryable in Eventually/Consistently pollers
1 parent 5c692c5 commit 2d05f71

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

identity_aware_routing/identity_aware_routing.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ var _ = IdentityAwareRoutingDescribe("Identity-Aware Routing", func() {
9393
curlArgs := mtlsProxyURL(appName, backendHost, domain, path)
9494
curl := helpers.Curl(Config, curlArgs).Wait()
9595
var resp mtlsProxyResponse
96-
err := json.Unmarshal(curl.Out.Contents(), &resp)
97-
ExpectWithOffset(1, err).NotTo(HaveOccurred(), "Failed to parse mtls_proxy response: %s", string(curl.Out.Contents()))
96+
if err := json.Unmarshal(curl.Out.Contents(), &resp); err != nil {
97+
return mtlsProxyResponse{StatusCode: -1}
98+
}
9899
return resp
99100
}
100101

0 commit comments

Comments
 (0)