Skip to content

Commit

Permalink
fix: tokenfilter test (#3446)
Browse files Browse the repository at this point in the history
## Overview

Fixes #3238
  • Loading branch information
ninabarbakadze committed May 9, 2024
1 parent e631be3 commit 2fec50c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions test/tokenfilter/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/celestiaorg/celestia-app/v2/app/encoding"
"github.com/celestiaorg/celestia-app/v2/pkg/appconsts"
"github.com/celestiaorg/celestia-app/v2/test/util/testnode"
"github.com/celestiaorg/celestia-app/v2/x/minfee"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
Expand Down Expand Up @@ -241,5 +242,11 @@ func SetupWithGenesisValSet(t testing.TB, valSet *tmtypes.ValidatorSet, genAccs
},
)

// do not require a network fee for this test
subspace := app.GetSubspace(minfee.ModuleName)
minfee.RegisterMinFeeParamTable(subspace)
ctx := sdk.NewContext(app.CommitMultiStore(), tmproto.Header{}, false, log.NewNopLogger())
subspace.Set(ctx, minfee.KeyGlobalMinGasPrice, sdk.NewDec(0))

return app
}
4 changes: 0 additions & 4 deletions test/tokenfilter/tokenfilter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,5 @@ func (suite *TokenFilterTestSuite) TestHandleInboundTransfer() {
}

func TestTokenFilterTestSuite(t *testing.T) {
// FIXME: this is because the ibctesting framework we use
// doesn't set the version in the header which we require
// to know which state machine to execute against
t.Skip("token filter tests are currently not supported")
suite.Run(t, new(TokenFilterTestSuite))
}

0 comments on commit 2fec50c

Please sign in to comment.