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

fix: fix the data race problem in TestQueryABCIHeight #565

Merged
merged 2 commits into from
Jun 28, 2022

Conversation

zemyblue
Copy link
Member

@zemyblue zemyblue commented Jun 16, 2022

Signed-off-by: zemyblue zemyblue@gmail.com

Description

This data race problem of TestQueryABCIHeight occurs frequently.

There are three times test continually in TestQueryABCIHeight. In the last test, he origin expected block height is 4, but sometimes the test result is 5. I think this reason is that the block confirm time is very short(1s) and it seems to be affected by previous tests and CI system spec. So, increase the expected value by 1 and modify the test to succeed if the block height is below that value.

related: #514

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml,

Signed-off-by: zemyblue <zemyblue@gmail.com>
@zemyblue zemyblue self-assigned this Jun 16, 2022
@codecov
Copy link

codecov bot commented Jun 16, 2022

Codecov Report

Merging #565 (7c36df9) into main (6157f09) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #565      +/-   ##
==========================================
- Coverage   57.59%   57.58%   -0.01%     
==========================================
  Files         793      793              
  Lines       86584    86584              
==========================================
- Hits        49866    49861       -5     
- Misses      33558    33562       +4     
- Partials     3160     3161       +1     
Impacted Files Coverage Δ
store/rootmulti/store.go 70.06% <0.00%> (-1.09%) ⬇️
x/wasm/keeper/keeper.go 85.22% <0.00%> (+0.36%) ⬆️

@zemyblue zemyblue requested review from torao, 0Tech and dudong2 June 16, 2022 12:06
Signed-off-by: zemyblue <zemyblue@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants