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: trivial e2e improvements #2274

Merged
merged 14 commits into from
Oct 10, 2023
Merged

fix: trivial e2e improvements #2274

merged 14 commits into from
Oct 10, 2023

Conversation

toteki
Copy link
Member

@toteki toteki commented Oct 8, 2023

Anything that doesn't need much review

  • adding comments to functions
  • moving functions between files without modifying
  • merging short, single-use functions into the functions that call them

This way the main PR is less cluttered

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #2274 (4b7ea69) into main (7f05ad4) will decrease coverage by 4.91%.
Report is 253 commits behind head on main.
The diff coverage is 83.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2274      +/-   ##
==========================================
- Coverage   75.38%   70.48%   -4.91%     
==========================================
  Files         100      170      +70     
  Lines        8025    12880    +4855     
==========================================
+ Hits         6050     9079    +3029     
- Misses       1589     3198    +1609     
- Partials      386      603     +217     
Files Coverage Δ
ante/ante.go 66.66% <100.00%> (+18.45%) ⬆️
ante/fee.go 80.00% <100.00%> (+1.64%) ⬆️
ante/spam_prevention.go 75.92% <ø> (ø)
app/inflation/inflation.go 100.00% <100.00%> (ø)
util/coin/utoken.go 100.00% <100.00%> (ø)
x/incentive/client/tests/suite.go 100.00% <100.00%> (ø)
x/incentive/client/tests/tests.go 100.00% <100.00%> (ø)
x/incentive/codec.go 47.82% <ø> (+9.89%) ⬆️
x/incentive/genesis.go 92.48% <100.00%> (+79.14%) ⬆️
x/incentive/keeper/bond.go 92.50% <ø> (ø)
... and 45 more

... and 95 files with indirect coverage changes

@toteki toteki mentioned this pull request Oct 9, 2023
@toteki toteki marked this pull request as ready for review October 9, 2023 15:15
@toteki toteki requested a review from a team as a code owner October 9, 2023 15:15
Copy link
Contributor

@kosegor kosegor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

tests/e2e/setup/validator.go Outdated Show resolved Hide resolved
Co-authored-by: kosegor <[email protected]>
@toteki toteki added this pull request to the merge queue Oct 10, 2023
Merged via the queue into main with commit c0ed683 Oct 10, 2023
@toteki toteki deleted the adam/e2e2 branch October 10, 2023 03:57

s.Require().Equal(uint64(5), params.HistoricStampPeriod)
s.Require().Equal(uint64(4), params.MaximumPriceStamps)
s.Require().Equal(uint64(20), params.MedianStampPeriod)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When this is repeated many time, then it would be better to use:

require := s.Require()
require.Equal(...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be - I merely moved this function between files without modifying it

facundomedica pushed a commit that referenced this pull request Oct 30, 2023
* delete eth dockerfiles

* move gaia funcs to gaia.go

* move metoken util out of setup folder; move oracle tests to oracle file

* function comments

* todo comments

* comments

* comments and combine some functions

* price-feeder.go

* import order

* ibc.go

* init balance as coins, not string

* move vars around

* comment

* suggestion++

Co-authored-by: kosegor <[email protected]>

---------

Co-authored-by: kosegor <[email protected]>
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