diff --git a/osmoutils/binary_search_test.go b/osmoutils/binary_search_test.go index 321fbda5b95..365ccb6d482 100644 --- a/osmoutils/binary_search_test.go +++ b/osmoutils/binary_search_test.go @@ -59,8 +59,8 @@ func TestBinarySearch(t *testing.T) { require.Error(t, err) } else { require.NoError(t, err) + require.True(sdk.IntEq(t, tc.expectedSolvedInput, actualSolvedInput)) } - require.True(sdk.IntEq(t, tc.expectedSolvedInput, actualSolvedInput)) } } diff --git a/osmoutils/cli_helpers.go b/osmoutils/cli_helpers.go index 9546dc1da31..e801f1720a3 100644 --- a/osmoutils/cli_helpers.go +++ b/osmoutils/cli_helpers.go @@ -61,5 +61,4 @@ func ConditionalPanic(t *testing.T, expectPanic bool, sut func()) bool { require.NotPanics(t, sut) return false - } diff --git a/x/epochs/client/cli/cli_test.go b/x/epochs/client/cli/cli_test.go index 97af5dd4541..c30a1d8d20a 100644 --- a/x/epochs/client/cli/cli_test.go +++ b/x/epochs/client/cli/cli_test.go @@ -68,7 +68,6 @@ func (s *IntegrationTestSuite) TestGetCmdCurrentEpoch() { } out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, args) - if tc.expectErr { s.Require().Error(err) } else { diff --git a/x/mint/keeper/genesis_test.go b/x/mint/keeper/genesis_test.go index eace65cfbe6..65865480ef9 100644 --- a/x/mint/keeper/genesis_test.go +++ b/x/mint/keeper/genesis_test.go @@ -112,16 +112,6 @@ func (suite *KeeperTestSuite) TestMintInitGenesis() { originalVestingCoins := bankKeeper.GetBalance(ctx, developerAccount, tc.mintDenom) // Test. - // if tc.expectPanic { - // suite.Panics(func() { - // mintKeeper.InitGenesis(ctx, tc.mintGenesis) - // }) - // return - // } - - // suite.NotPanics(func() { - // mintKeeper.InitGenesis(ctx, tc.mintGenesis) - // }) if osmoutils.ConditionalPanic(suite.T(), tc.expectPanic || false, func() { mintKeeper.InitGenesis(ctx, tc.mintGenesis) }) { return