Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
950e5d9a
Commit
950e5d9a
authored
Sep 09, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13563 from a-robinson/timeout
Auto commit by PR queue bot
parents
434f05c0
4b47cb93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
apiserver.go
pkg/apiserver/apiserver.go
+1
-2
apiserver_test.go
pkg/apiserver/apiserver_test.go
+2
-2
No files found.
pkg/apiserver/apiserver.go
View file @
950e5d9a
...
@@ -345,8 +345,7 @@ func parseTimeout(str string) time.Duration {
...
@@ -345,8 +345,7 @@ func parseTimeout(str string) time.Duration {
}
}
glog
.
Errorf
(
"Failed to parse %q: %v"
,
str
,
err
)
glog
.
Errorf
(
"Failed to parse %q: %v"
,
str
,
err
)
}
}
// TODO: change back to 30s once #5180 is fixed
return
30
*
time
.
Second
return
2
*
time
.
Minute
}
}
func
readBody
(
req
*
http
.
Request
)
([]
byte
,
error
)
{
func
readBody
(
req
*
http
.
Request
)
([]
byte
,
error
)
{
...
...
pkg/apiserver/apiserver_test.go
View file @
950e5d9a
...
@@ -2145,10 +2145,10 @@ func TestUpdateChecksDecode(t *testing.T) {
...
@@ -2145,10 +2145,10 @@ func TestUpdateChecksDecode(t *testing.T) {
}
}
func
TestParseTimeout
(
t
*
testing
.
T
)
{
func
TestParseTimeout
(
t
*
testing
.
T
)
{
if
d
:=
parseTimeout
(
""
);
d
!=
2
*
time
.
Minute
{
if
d
:=
parseTimeout
(
""
);
d
!=
30
*
time
.
Second
{
t
.
Errorf
(
"blank timeout produces %v"
,
d
)
t
.
Errorf
(
"blank timeout produces %v"
,
d
)
}
}
if
d
:=
parseTimeout
(
"not a timeout"
);
d
!=
2
*
time
.
Minute
{
if
d
:=
parseTimeout
(
"not a timeout"
);
d
!=
30
*
time
.
Second
{
t
.
Errorf
(
"bad timeout produces %v"
,
d
)
t
.
Errorf
(
"bad timeout produces %v"
,
d
)
}
}
if
d
:=
parseTimeout
(
"10s"
);
d
!=
10
*
time
.
Second
{
if
d
:=
parseTimeout
(
"10s"
);
d
!=
10
*
time
.
Second
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment