Commit b2600a65 authored by Saad Ali's avatar Saad Ali

Merge pull request #20421 from thockin/e2e-debris

Remove e2e global 'timeout'
parents 10f9dd3b 5ff5890e
......@@ -27,7 +27,6 @@ import (
)
const (
timeout = 1 * time.Minute
maxRetries = 6
sleepDuration = 10 * time.Second
)
......
......@@ -218,7 +218,7 @@ func availCpu(c *client.Client, node *api.Node) (int64, error) {
func availSize(c *client.Client, node *api.Node) (uint64, error) {
statsResource := fmt.Sprintf("api/v1/proxy/nodes/%s/stats/", node.Name)
Logf("Querying stats for node %s using url %s", node.Name, statsResource)
res, err := c.Get().AbsPath(statsResource).Timeout(timeout).Do().Raw()
res, err := c.Get().AbsPath(statsResource).Timeout(time.Minute).Do().Raw()
if err != nil {
return 0, fmt.Errorf("error querying cAdvisor API: %v", err)
}
......
Markdown is supported
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