Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GAtom22 committed Jul 20, 2023
1 parent a34c170 commit 97c2b94
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions x/distribution/types/authz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ package types_test
import (
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"

"github.com/stretchr/testify/require"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

"github.com/cosmos/cosmos-sdk/simapp"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/testutil"
sdk "github.com/cosmos/cosmos-sdk/types"
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
)

var (
Expand All @@ -21,8 +20,9 @@ var (
)

func TestAuthzAuthorizations(t *testing.T) {
app := simapp.Setup(t, false)
ctx := app.BaseApp.NewContext(false, tmproto.Header{})
key := sdk.NewKVStoreKey(distributiontypes.StoreKey)
testCtx := testutil.DefaultContextWithDB(t, key, sdk.NewTransientStoreKey("transient_test"))
ctx := testCtx.Ctx.WithBlockHeader(tmproto.Header{})

testCases := []struct {
name string
Expand Down

0 comments on commit 97c2b94

Please sign in to comment.