mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Increased default timeout in APIServer to 2 minutes
This should for #5431
This commit is contained in:
parent
5326baed7b
commit
ffcf7b1866
@ -258,7 +258,8 @@ func parseTimeout(str string) time.Duration {
|
||||
}
|
||||
glog.Errorf("Failed to parse %q: %v", str, err)
|
||||
}
|
||||
return 30 * time.Second
|
||||
// TODO: change back to 30s once #5180 is fixed
|
||||
return 2 * time.Minute
|
||||
}
|
||||
|
||||
func readBody(req *http.Request) ([]byte, error) {
|
||||
|
@ -1216,10 +1216,10 @@ func TestUpdateChecksDecode(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestParseTimeout(t *testing.T) {
|
||||
if d := parseTimeout(""); d != 30*time.Second {
|
||||
if d := parseTimeout(""); d != 2*time.Minute {
|
||||
t.Errorf("blank timeout produces %v", d)
|
||||
}
|
||||
if d := parseTimeout("not a timeout"); d != 30*time.Second {
|
||||
if d := parseTimeout("not a timeout"); d != 2*time.Minute {
|
||||
t.Errorf("bad timeout produces %v", d)
|
||||
}
|
||||
if d := parseTimeout("10s"); d != 10*time.Second {
|
||||
|
Loading…
Reference in New Issue
Block a user