mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 06:15:45 +00:00
e2e: set default timeout on Client
This commit is contained in:
parent
915bc04488
commit
11f3785023
@ -834,6 +834,9 @@ func loadClient() (*client.Client, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error creating client: %v", err.Error())
|
return nil, fmt.Errorf("error creating client: %v", err.Error())
|
||||||
}
|
}
|
||||||
|
if c.Timeout == 0 {
|
||||||
|
c.Timeout = singleCallTimeout
|
||||||
|
}
|
||||||
return c, nil
|
return c, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user