Skip to content

Commit

Permalink
Fix integration_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhbhatia-stripe committed Sep 30, 2024
1 parent a28c575 commit fc84bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func validateProxyResponseWithUpstream(t *testing.T, test *TestCase, resp *http.
t.Logf("HTTP Response: %#v", resp)

if test.OverConnect {
a.Contains(err.Error(), "Failed to resolve remote hostname")
a.Contains(err.Error(), fmt.Sprintf("DNS resolution failed for 'api.stripe.com:443'"))
} else {
a.Equal(http.StatusBadGateway, resp.StatusCode)
}
Expand Down Expand Up @@ -648,7 +648,7 @@ func startSmokescreen(t *testing.T, useTLS bool, logHook logrus.Hook, httpProxyA
)
}

if httpProxyAddr != ""{
if httpProxyAddr != "" {
args = append(args, fmt.Sprintf("--upstream-http-proxy-addr=%s", httpProxyAddr))
args = append(args, fmt.Sprintf("--upstream-https-proxy-addr=%s", httpProxyAddr))
}
Expand Down

0 comments on commit fc84bef

Please sign in to comment.