2022-10-21 16:59:03 +00:00
|
|
|
package keeper_test
|
|
|
|
|
|
|
|
import (
|
2023-01-11 15:11:21 +00:00
|
|
|
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
2022-10-21 16:59:03 +00:00
|
|
|
"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()))
|
2023-01-11 15:11:21 +00:00
|
|
|
suite.Require().Equal(evmtypes.EventTypeBlockBloom, em.Events()[0].Type)
|
2022-10-21 16:59:03 +00:00
|
|
|
}
|