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
b5cef55a
Commit
b5cef55a
authored
Jun 30, 2016
by
Random-Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pull image test flake
parent
594e4d88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
runtime_conformance_test.go
test/e2e_node/runtime_conformance_test.go
+15
-7
No files found.
test/e2e_node/runtime_conformance_test.go
View file @
b5cef55a
...
...
@@ -261,14 +261,22 @@ while true; do sleep 1; done
Expect
(
container
.
Create
())
.
To
(
Succeed
())
defer
container
.
Delete
()
By
(
"check the pod phase"
)
Eventually
(
container
.
GetPhase
,
retryTimeout
,
pollInterval
)
.
Should
(
Equal
(
testCase
.
phase
))
Consistently
(
container
.
GetPhase
,
consistentCheckTimeout
,
pollInterval
)
.
Should
(
Equal
(
testCase
.
phase
))
// We need to check container state first. The default pod status is pending, If we check
// pod phase first, and the expected pod phase is Pending, the container status may not
// even show up when we check it.
By
(
"check the container state"
)
status
,
err
:=
container
.
GetStatus
()
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
GetContainerState
(
status
.
State
))
.
To
(
Equal
(
testCase
.
state
))
getState
:=
func
()
(
ContainerState
,
error
)
{
status
,
err
:=
container
.
GetStatus
()
if
err
!=
nil
{
return
ContainerStateUnknown
,
err
}
return
GetContainerState
(
status
.
State
),
nil
}
Eventually
(
getState
,
retryTimeout
,
pollInterval
)
.
Should
(
Equal
(
testCase
.
state
))
Consistently
(
getState
,
consistentCheckTimeout
,
pollInterval
)
.
Should
(
Equal
(
testCase
.
state
))
By
(
"check the pod phase"
)
Expect
(
container
.
GetPhase
())
.
To
(
Equal
(
testCase
.
phase
))
By
(
"it should be possible to delete"
)
Expect
(
container
.
Delete
())
.
To
(
Succeed
())
...
...
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