e2e: minor changes to network/service testing utils

Add more logging to help debug. Also refactor several functions to improve
reusability.
This commit is contained in:
Yu-Ju Hong
2017-09-07 17:43:59 -07:00
parent 424819888a
commit 0b38495c42
2 changed files with 28 additions and 32 deletions

View File

@@ -690,6 +690,7 @@ func TestReachableHTTPWithContentTimeoutWithRetriableErrorCodes(ip string, port
if resp.StatusCode != 200 {
for _, code := range retriableErrCodes {
if resp.StatusCode == code {
Logf("Got non-success status %q when trying to access %s, but the error code is retriable", resp.Status, url)
return false, nil
}
}