change assert by require
This commit is contained in:
parent
e0b5413861
commit
643b109826
|
@ -3,13 +3,13 @@ package mint_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/x/mint"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/cosmos/cosmos-sdk/x/supply"
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
|
|
||||||
"github.com/tendermint/tendermint/abci/types"
|
"github.com/tendermint/tendermint/abci/types"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/simapp"
|
"github.com/cosmos/cosmos-sdk/simapp"
|
||||||
|
"github.com/cosmos/cosmos-sdk/x/mint"
|
||||||
|
"github.com/cosmos/cosmos-sdk/x/supply"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
|
func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
|
||||||
|
@ -24,6 +24,5 @@ func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
|
||||||
)
|
)
|
||||||
|
|
||||||
acc := app.AccountKeeper.GetAccount(ctx, supply.NewModuleAddress(mint.ModuleName))
|
acc := app.AccountKeeper.GetAccount(ctx, supply.NewModuleAddress(mint.ModuleName))
|
||||||
|
require.NotNil(t, acc)
|
||||||
assert.NotNil(t, acc)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue