-
Notifications
You must be signed in to change notification settings - Fork 950
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: refactor volume test #2496
test: refactor volume test #2496
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2496 +/- ##
===========================================
- Coverage 69.31% 52.78% -16.54%
===========================================
Files 278 278
Lines 18387 18387
===========================================
- Hits 12745 9705 -3040
- Misses 4213 7598 +3385
+ Partials 1429 1084 -345
|
linter fails with
|
I have rerun the linter CI. The linter CI passes, and while the travisCI fails:
and
Is the checkpoint part related to your CRIU part? @Ace-Tang I will re-run travis CI to check if this is a flaky test. @ZYecho |
lines := volumesToKV(ret.Stdout()) | ||
for _, line := range lines { | ||
c.Assert(line[0], check.Equals, "local") | ||
if !strings.Contains(line[3], DefaultVolumeMountPath) { |
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.
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.
yep, check.Contains
is really helpful.
Signed-off-by: zhangyue <zy675793960@yeah.net>
e97e0b4
to
3fa4039
Compare
Never mind the linkcheck failure:
|
LGTM |
Signed-off-by: zhangyue zy675793960@yeah.net
Ⅰ. Describe what this PR did
Add a util func to refactor volume test to make test code more readable
Ⅱ. Does this pull request fix one issue?
None.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
None.
Ⅳ. Describe how to verify it
go test -gocheck.f PouchVolumeSuite
Ⅴ. Special notes for reviews
None.