forked from cerc-io/laconicd-deprecated
8886ce3dfd
* (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>
18 lines
515 B
Go
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)
|
|
}
|