Skip to content

Commit

Permalink
fix some non deterministic tests (#523) (#524)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5efa153)

Co-authored-by: Adam Tucker <adam@osmosis.team>
  • Loading branch information
mergify[bot] and czarcas7ic authored Feb 10, 2024
1 parent 3ba9f4d commit 3dff53d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion x/evidence/client/cli/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ func TestGetQueryCmd(t *testing.T) {
true,
},
"all evidence (default pagination)": {
[]string{},
[]string{
fmt.Sprintf("--%s=text", flags.FlagOutput),
},
func() client.Context {
bz, _ := encCfg.Codec.Marshal(&sdk.TxResponse{})
c := clitestutil.NewMockTendermintRPC(abci.ResponseQuery{
Expand Down
9 changes: 4 additions & 5 deletions x/gov/keeper/proposal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,12 @@ func (suite *KeeperTestSuite) TestDeleteProposalInVotingPeriod() {
}

func (suite *KeeperTestSuite) TestActivateVotingPeriod() {
testCases := map[string]struct {
testCases := []struct {
name string
expedited bool
}{
"regular proposal": {},
"expedited proposal": {
expedited: true,
},
{name: "regular proposal", expedited: false},
{name: "expedited proposal", expedited: true},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 3dff53d

Please sign in to comment.