20c82d0f85
* fix: revert changes from TypedEvents * fix: formatter and linter * fix: double quote to prevent globbing and word splitting * fix: added token to codecov * fix: re-added events.proto for usage later
19 lines
560 B
Go
19 lines
560 B
Go
package keeper_test
|
|
|
|
import (
|
|
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
|
"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(evmtypes.EventTypeBlockBloom, em.Events()[0].Type)
|
|
}
|