Merge pull request #6972 from wojtek-t/allow_more_retries_in_density

Allow more retries on errors in density test
pull/6/head
Filip Grzadkowski 2015-04-17 13:36:46 +02:00
commit 3f44143105
2 changed files with 1 additions and 2 deletions

View File

@ -257,7 +257,6 @@ func writeJSON(statusCode int, codec runtime.Codec, object runtime.Object, w htt
return
}
w.Header().Set("Content-Type", "application/json")
glog.Infof("Writting status code: %d", statusCode)
w.WriteHeader(statusCode)
w.Write(formatted.Bytes())
}

View File

@ -36,7 +36,7 @@ import (
// Convenient wrapper around listing pods supporting retries.
func listPods(c *client.Client, namespace string, label labels.Selector) (*api.PodList, error) {
maxRetries := 2
maxRetries := 4
pods, err := c.Pods(namespace).List(label)
for i := 0; i < maxRetries; i++ {
if err == nil {