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 to change expected of test according to build tag #528

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

Mdaiki0730
Copy link
Member

Description

The mismatch between the constant VrfProofSize and the result of the function GenerateVRFProof() as well as the constant VrfOutputSize and the result of the function VRFVerify() will lead to the failure of the benchmark test, benchmarkVRFProof().

I fixed the constants VrfProofSize and VrfOutputSize to change according to the build tag and to invert the expected and actual values ​​passed in the function require.Equalf().

@Mdaiki0730 Mdaiki0730 added the C: bug Classification: Something isn't working label Dec 12, 2022
@Mdaiki0730 Mdaiki0730 self-assigned this Dec 12, 2022
@codecov
Copy link

codecov bot commented Dec 12, 2022

Codecov Report

Merging #528 (bd5f34c) into main (7ba5191) will increase coverage by 0.10%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #528      +/-   ##
==========================================
+ Coverage   65.99%   66.10%   +0.10%     
==========================================
  Files         279      279              
  Lines       38028    38028              
==========================================
+ Hits        25097    25138      +41     
+ Misses      11129    11089      -40     
+ Partials     1802     1801       -1     
Impacted Files Coverage Δ
crypto/vrf/vrf_r2ishiguro.go 100.00% <ø> (ø)
statesync/snapshots.go 93.71% <0.00%> (-1.26%) ⬇️
types/evidence.go 59.05% <0.00%> (-1.12%) ⬇️
p2p/pex/pex_reactor.go 79.67% <0.00%> (-0.62%) ⬇️
consensus/state.go 73.47% <0.00%> (-0.06%) ⬇️
light/client.go 61.71% <0.00%> (+0.45%) ⬆️
p2p/switch.go 66.52% <0.00%> (+0.61%) ⬆️
abci/client/socket_client.go 72.96% <0.00%> (+0.87%) ⬆️
mempool/reactor.go 79.67% <0.00%> (+1.09%) ⬆️
blockchain/v0/pool.go 78.81% <0.00%> (+1.55%) ⬆️
... and 4 more

@Mdaiki0730 Mdaiki0730 marked this pull request as ready for review December 12, 2022 11:14
@Mdaiki0730 Mdaiki0730 requested a review from ulbqb December 12, 2022 11:14
@Mdaiki0730 Mdaiki0730 merged commit 212d0b3 into Finschia:main Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: bug Classification: Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants