Commit 5ff5890e authored by Tim Hockin's avatar Tim Hockin

Remove e2e global 'timeout'

parent 8d8de2ef
......@@ -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