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
47b01997
Commit
47b01997
authored
Aug 03, 2017
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase the GC e2e test timeout because the API re-discovery increases the latency
parent
04b2c29a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
garbage_collector.go
test/e2e/apimachinery/garbage_collector.go
+4
-1
No files found.
test/e2e/apimachinery/garbage_collector.go
View file @
47b01997
...
@@ -646,6 +646,7 @@ var _ = SIGDescribe("Garbage collector", func() {
...
@@ -646,6 +646,7 @@ var _ = SIGDescribe("Garbage collector", func() {
}
}
By
(
"wait for the rc to be deleted"
)
By
(
"wait for the rc to be deleted"
)
// TODO: shorten the timeout when we make GC's periodic API rediscovery more efficient.
// TODO: shorten the timeout when we make GC's periodic API rediscovery more efficient.
// Tracked at https://github.com/kubernetes/kubernetes/issues/50046.
if
err
:=
wait
.
Poll
(
5
*
time
.
Second
,
90
*
time
.
Second
,
func
()
(
bool
,
error
)
{
if
err
:=
wait
.
Poll
(
5
*
time
.
Second
,
90
*
time
.
Second
,
func
()
(
bool
,
error
)
{
_
,
err
:=
rcClient
.
Get
(
rc1
.
Name
,
metav1
.
GetOptions
{})
_
,
err
:=
rcClient
.
Get
(
rc1
.
Name
,
metav1
.
GetOptions
{})
if
err
==
nil
{
if
err
==
nil
{
...
@@ -732,7 +733,9 @@ var _ = SIGDescribe("Garbage collector", func() {
...
@@ -732,7 +733,9 @@ var _ = SIGDescribe("Garbage collector", func() {
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
var
pods
*
v1
.
PodList
var
pods
*
v1
.
PodList
var
err2
error
var
err2
error
if
err
:=
wait
.
Poll
(
5
*
time
.
Second
,
30
*
time
.
Second
,
func
()
(
bool
,
error
)
{
// TODO: shorten the timeout when we make GC's periodic API rediscovery more efficient.
// Tracked at https://github.com/kubernetes/kubernetes/issues/50046.
if
err
:=
wait
.
Poll
(
5
*
time
.
Second
,
90
*
time
.
Second
,
func
()
(
bool
,
error
)
{
pods
,
err2
=
podClient
.
List
(
metav1
.
ListOptions
{})
pods
,
err2
=
podClient
.
List
(
metav1
.
ListOptions
{})
if
err2
!=
nil
{
if
err2
!=
nil
{
return
false
,
fmt
.
Errorf
(
"Failed to list pods: %v"
,
err
)
return
false
,
fmt
.
Errorf
(
"Failed to list pods: %v"
,
err
)
...
...
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