laconicd-deprecated/x/evm/keeper/abci_test.go
Vladislav Varadinov 8886ce3dfd
chore(evm, feemarket) - Migrate Event emitting to TypedEvent (#1544)
* (refactor): Migrated to new Typed Events

* (fix): fixed tests and initialized the logs array in the proto message

* Added CHANGELOG entry

* (refactor): Made migration to Typedevent to feemarket module

* (fix): replace error returning with error logging.

* fix: linter and formatter

* fix: handle error by logging it

* fix: ran formatter and linter

* Apply suggestions from code review

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>

* fix: increase sleep time to 5s initially

* fix: comment out failing tests to investigate in a separate PR

* fix: update timeout to 10 minutes

* fix: added 15 min timeout

Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2023-01-05 17:24:18 +01:00

18 lines
515 B
Go

package keeper_test
import (
"github.com/tendermint/tendermint/abci/types"
)
func (suite *KeeperTestSuite) TestEndBlock() {
em := suite.ctx.EventManager()
suite.Require().Equal(0, len(em.Events()))
res := suite.app.EvmKeeper.EndBlock(suite.ctx, types.RequestEndBlock{})
suite.Require().Equal([]types.ValidatorUpdate{}, res)
// should emit 1 EventTypeBlockBloom event on EndBlock
suite.Require().Equal(1, len(em.Events()))
suite.Require().Equal("ethermint.evm.v1.EventBlockBloom", em.Events()[0].Type)
}