mirror of https://github.com/k3s-io/k3s
Merge pull request #6972 from wojtek-t/allow_more_retries_in_density
Allow more retries on errors in density testpull/6/head
commit
3f44143105
|
@ -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())
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue