-
Notifications
You must be signed in to change notification settings - Fork 75
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: Acceptance tests seems inconsistent #430
Conversation
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.
Looking good.
Please add a logic comment to clarify the optimization
Codecov Report
@@ Coverage Diff @@
## main #430 +/- ##
==========================================
+ Coverage 73.55% 73.65% +0.09%
==========================================
Files 10 10
Lines 832 835 +3
Branches 136 137 +1
==========================================
+ Hits 612 615 +3
Misses 172 172
Partials 48 48
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
LG.
Minor spacing and spelling mistake
00a10db
to
78832c2
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
LGTM
Description:
Fixing two tests with these changes. Another one was fixed here hashgraph/hedera-sdk-js#1224.
Logic behind fix for test:
should call eth_feeHistory with updated fees
In the before hook, we are feeding default fees to the mirror node. So that we know how many blocks we should take and where to expect those fees. But if there is discrepancy in the blocks, the first element in this array is taken from the consensus node, not from the mirror node. This is the reason sometimes this value in the first index is wrong.
Logic behind fix for test:
should call eth_feeHistory with newest block > latest
By the time we're requesting the last block, it's already ahead by one. So we were excepting it to be 10 ahead, but it's actually 11 ahead on rare occasions.
Related issue(s):
Fixes #381
Notes for reviewer:
Checklist