change assert by require

This commit is contained in:
Jonathan Gimeno 2020-03-05 16:15:53 +01:00
parent e0b5413861
commit 643b109826
1 changed files with 4 additions and 5 deletions

View File

@ -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)
} }