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: e2e testing final #79

Merged
merged 31 commits into from
May 20, 2024
Merged

test: e2e testing final #79

merged 31 commits into from
May 20, 2024

Conversation

aljo242
Copy link
Collaborator

@aljo242 aljo242 commented May 16, 2024

Closes BLO-1236

tests/app/app.go Outdated Show resolved Hide resolved
tests/e2e/suite.go Show resolved Hide resolved
fee := s.QueryBaseFee()
s.T().Log("base fee", fee.String())

if fee.AmountOf(feemarkettypes.DefaultFeeDenom).Equal(params.MinBaseFee) {

Choose a reason for hiding this comment

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

What does this check do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we are checking that the fee has decreased and been "clamped" to the min base fee


amt, err := s.chain.GetBalance(context.Background(), s.user1.FormattedAddress(), baseFee[0].Denom)
s.Require().NoError(err)
s.Require().True(amt.LT(math.NewInt(initBalance)), amt)

Choose a reason for hiding this comment

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

Looks like we're checking the balance of user1's account? Are we not verifying properties of the fee-state here as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We are already checking the movement of the fee state in the for loop

x/feemarket/ante/fee.go Show resolved Hide resolved
tests/e2e/suite.go Show resolved Hide resolved
@aljo242 aljo242 requested a review from nivasan1 May 17, 2024 18:22
@aljo242 aljo242 merged commit d90e573 into main May 20, 2024
7 checks passed
@aljo242 aljo242 deleted the test/e2e45 branch May 20, 2024 15:10
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