Skip to content
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 -race to go test to detect race #1294

Merged
merged 1 commit into from
May 10, 2018

Conversation

allencloud
Copy link
Collaborator

@allencloud allencloud commented May 10, 2018

Signed-off-by: Allen Sun [email protected]

Ⅰ. Describe what this PR did

This pull request add -race flag to unit test which will definitely help a lot on detecting error.
It is added to the hack folder.

Ⅱ. Does this pull request fix one issue?

fix ##1287

Ⅲ. Describe how you did it

none

Ⅳ. Describe how to verify it

none

Ⅴ. Special notes for reviews

none

@codecov-io
Copy link

Codecov Report

Merging #1294 into master will decrease coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1294     +/-   ##
=========================================
- Coverage    15.4%   15.31%   -0.1%     
=========================================
  Files         174      174             
  Lines       11026    11014     -12     
=========================================
- Hits         1699     1687     -12     
  Misses       9208     9208             
  Partials      119      119
Impacted Files Coverage Δ
pkg/meta/boltdb.go 60.56% <0%> (-5.71%) ⬇️

@allencloud
Copy link
Collaborator Author

I am afraid that we have no any test case which will affect the race condition. @Letty5411 @fuweid
It is a matter of how to construct unit test to cover testing race condition.

@HusterWan
Copy link
Contributor

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label May 10, 2018
@HusterWan HusterWan merged commit 7fadec9 into AliyunContainerService:master May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/test LGTM one maintainer or community participant agrees to merge the pull reuqest. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants