Commit 22f625d7 authored by GLYASAI's avatar GLYASAI
Browse files

live

Showing with 3 additions and 3 deletions
+3 -3
......@@ -221,8 +221,8 @@ func checkEnvoyIfReady(client *http.Client, envoyReadyUrl string) error {
if err != nil {
return err
}
if resp.StatusCode != 200 || string(reBody) != "LIVE" {
return fmt.Errorf("HTTP status code %v ,body: %s", resp.StatusCode, string(reBody))
if resp.StatusCode != 200 || !strings.Contains(string(reBody), "LIVE") {
return fmt.Errorf("HTTP status code %d, body: %s", resp.StatusCode, string(reBody))
}
return nil
}
......@@ -242,7 +242,7 @@ func checkEnvoyListenerIfReady(client *http.Client, url string, port string) err
return err
}
if resp.StatusCode != 200 || !strings.Contains(string(reBody), fmt.Sprintf(":%s", port)) {
return fmt.Errorf("Check Listeners HTTP status code %v, body is %s", resp.StatusCode, string(reBody))
return fmt.Errorf("check Listeners HTTP status code %v, body is %s", resp.StatusCode, string(reBody))
}
return nil
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment