-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add all states container restart validation #1549
test: add all states container restart validation #1549
Conversation
26ff455
to
f5e9e1d
Compare
f5e9e1d
to
2da4ead
Compare
Codecov Report
@@ Coverage Diff @@
## master #1549 +/- ##
==========================================
- Coverage 41.21% 39.33% -1.89%
==========================================
Files 266 266
Lines 17313 17968 +655
==========================================
- Hits 7136 7068 -68
- Misses 9290 10022 +732
+ Partials 887 878 -9
|
test/cli_restart_test.go
Outdated
defer DelContainerForceMultyTime(c, name) | ||
|
||
res.Assert(c, icmd.Success) | ||
time.Sleep(1 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this sleep
is required? As you don't use -d
in line 69, container is expected to be in exited
state as soon as it returns, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault, I added -d
.
Signed-off-by: Allen Sun <[email protected]>
2da4ead
to
e150e43
Compare
LGTM |
Signed-off-by: Allen Sun [email protected]
Ⅰ. Describe what this PR did
This pr changes the test cases for restart action:
2.add containers with all states to check the restart action, like running, exited, stopped, created.
this is similar to #1548
Ⅱ. Does this pull request fix one issue?
none
Ⅲ. Describe how you did it
none
Ⅳ. Describe how to verify it
none
Ⅴ. Special notes for reviews
@Letty5411