You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is a bit too short for me - it's used on part of the infrastructure that has some intermittent lags, and I can't do anything about it (vendor issue)
HttpDo is referenced by other HttpDo* request functions, so this would be useful in all of them - can the timeout be parametrized, and default to 10 if not defined otherwise?
The text was updated successfully, but these errors were encountered:
It can, but it's not easy to do so in Go in a backwards compatible way. I'm also worried about adding yet another parameter to the already long function signatures in http_helper.
Probably what we need to do is refactor the http_helper methods to take in an Options struct. That struct can contain tlsConfig, retries, sleepBetweenRetries, this new timeout setting, etc. What's nice is that the struct would be extensible, so we could add new params in a backwards compatible way, without too much verbosity, in the future.
Default 10 seconds of timeout of http.Client here:
terratest/modules/http-helper/http_helper.go
Line 164 in 737e05c
HttpDo is referenced by other HttpDo* request functions, so this would be useful in all of them - can the timeout be parametrized, and default to 10 if not defined otherwise?
The text was updated successfully, but these errors were encountered: