diff --git a/tests/system/fraud_test.go b/tests/system/fraud_test.go index 3aa95cb091..7d42d4b2e1 100644 --- a/tests/system/fraud_test.go +++ b/tests/system/fraud_test.go @@ -3,14 +3,11 @@ package system import ( + sdkmath "cosmossdk.io/math" "fmt" + "github.com/stretchr/testify/require" "math" - "strconv" "testing" - - sdkmath "cosmossdk.io/math" - - "github.com/stretchr/testify/require" ) func TestRecursiveMsgsExternalTrigger(t *testing.T) { @@ -31,10 +28,6 @@ func TestRecursiveMsgsExternalTrigger(t *testing.T) { gas: "auto", expErrMatcher: ErrOutOfGasMatcher, }, - "tx": { // tx will be rejected by CometBFT in post abci checkTX operation - gas: strconv.Itoa(maxBlockGas * 100), - expErrMatcher: require.NoError, - }, } for name, spec := range specs { t.Run(name, func(t *testing.T) { @@ -55,16 +48,6 @@ func TestRecursiveMsgsExternalTrigger(t *testing.T) { } } -// with default gas factor and token -func calcMinFeeRequired(t *testing.T, gas string) string { - x, ok := sdkmath.NewIntFromString(gas) - require.True(t, ok) - const defaultTestnetFee = "0.000006" - minFee, err := sdkmath.LegacyNewDecFromStr(defaultTestnetFee) - require.NoError(t, err) - return fmt.Sprintf("%sstake", minFee.Mul(sdkmath.LegacyNewDecFromInt(x)).RoundInt().String()) -} - func TestRecursiveSmartQuery(t *testing.T) { sut.ResetDirtyChain(t) sut.StartChain(t) @@ -82,3 +65,13 @@ func TestRecursiveSmartQuery(t *testing.T) { } sut.AwaitNextBlock(t) } + +// with default gas factor and token +func calcMinFeeRequired(t *testing.T, gas string) string { + x, ok := sdkmath.NewIntFromString(gas) + require.True(t, ok) + const defaultTestnetFee = "0.000006" + minFee, err := sdkmath.LegacyNewDecFromStr(defaultTestnetFee) + require.NoError(t, err) + return fmt.Sprintf("%sstake", minFee.Mul(sdkmath.LegacyNewDecFromInt(x)).RoundInt().String()) +}