mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Remove e2e global 'timeout'
This commit is contained in:
parent
8d8de2efb4
commit
5ff5890ef9
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user