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
fb1a8219
Commit
fb1a8219
authored
Apr 01, 2015
by
Victor Marmol
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6296 from yujuhong/timeout
Increase the timeouts in integration test
parents
66d37b56
4d28ad36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
integration.go
cmd/integration/integration.go
+5
-5
No files found.
cmd/integration/integration.go
View file @
fb1a8219
...
@@ -389,13 +389,13 @@ containers:
...
@@ -389,13 +389,13 @@ containers:
}
}
// Delete the mirror pod, and wait for it to be recreated.
// Delete the mirror pod, and wait for it to be recreated.
c
.
Pods
(
namespace
)
.
Delete
(
podName
)
c
.
Pods
(
namespace
)
.
Delete
(
podName
)
if
err
=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
30
,
if
err
=
wait
.
Poll
(
time
.
Second
,
time
.
Minute
*
1
,
podRunning
(
c
,
namespace
,
podName
));
err
!=
nil
{
podRunning
(
c
,
namespace
,
podName
));
err
!=
nil
{
glog
.
Fatalf
(
"%s FAILED: mirror pod has not been re-created or is not running: %v"
,
desc
,
err
)
glog
.
Fatalf
(
"%s FAILED: mirror pod has not been re-created or is not running: %v"
,
desc
,
err
)
}
}
// Remove the manifest file, and wait for the mirror pod to be deleted.
// Remove the manifest file, and wait for the mirror pod to be deleted.
os
.
Remove
(
manifestFile
.
Name
())
os
.
Remove
(
manifestFile
.
Name
())
if
err
=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
30
,
if
err
=
wait
.
Poll
(
time
.
Second
,
time
.
Minute
*
1
,
podNotFound
(
c
,
namespace
,
podName
));
err
!=
nil
{
podNotFound
(
c
,
namespace
,
podName
));
err
!=
nil
{
glog
.
Fatalf
(
"%s FAILED: mirror pod has not been deleted: %v"
,
desc
,
err
)
glog
.
Fatalf
(
"%s FAILED: mirror pod has not been deleted: %v"
,
desc
,
err
)
}
}
...
@@ -851,7 +851,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
...
@@ -851,7 +851,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Failed to create pod: %v, %v"
,
pod
,
err
)
glog
.
Fatalf
(
"Failed to create pod: %v, %v"
,
pod
,
err
)
}
}
if
err
:=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
1
0
,
podRunning
(
client
,
foo
.
Namespace
,
foo
.
Name
));
err
!=
nil
{
if
err
:=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
3
0
,
podRunning
(
client
,
foo
.
Namespace
,
foo
.
Name
));
err
!=
nil
{
glog
.
Fatalf
(
"FAILED: pod never started running %v"
,
err
)
glog
.
Fatalf
(
"FAILED: pod never started running %v"
,
err
)
}
}
...
@@ -860,7 +860,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
...
@@ -860,7 +860,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Failed to create pod: %v, %v"
,
pod
,
err
)
glog
.
Fatalf
(
"Failed to create pod: %v, %v"
,
pod
,
err
)
}
}
if
err
:=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
1
0
,
podRunning
(
client
,
bar
.
Namespace
,
bar
.
Name
));
err
!=
nil
{
if
err
:=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
3
0
,
podRunning
(
client
,
bar
.
Namespace
,
bar
.
Name
));
err
!=
nil
{
glog
.
Fatalf
(
"FAILED: pod never started running %v"
,
err
)
glog
.
Fatalf
(
"FAILED: pod never started running %v"
,
err
)
}
}
...
@@ -875,7 +875,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
...
@@ -875,7 +875,7 @@ func runSchedulerNoPhantomPodsTest(client *client.Client) {
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Failed to create pod: %v, %v"
,
pod
,
err
)
glog
.
Fatalf
(
"Failed to create pod: %v, %v"
,
pod
,
err
)
}
}
if
err
:=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
1
0
,
podRunning
(
client
,
baz
.
Namespace
,
baz
.
Name
));
err
!=
nil
{
if
err
:=
wait
.
Poll
(
time
.
Second
,
time
.
Second
*
3
0
,
podRunning
(
client
,
baz
.
Namespace
,
baz
.
Name
));
err
!=
nil
{
glog
.
Fatalf
(
"FAILED: (Scheduler probably didn't process deletion of 'phantom.bar') Pod never started running: %v"
,
err
)
glog
.
Fatalf
(
"FAILED: (Scheduler probably didn't process deletion of 'phantom.bar') Pod never started running: %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