Skip to content

Commit 3dff53d

Browse files
fix some non deterministic tests (#523) (#524)
(cherry picked from commit 5efa153) Co-authored-by: Adam Tucker <adam@osmosis.team>
1 parent 3ba9f4d commit 3dff53d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

x/evidence/client/cli/query_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ func TestGetQueryCmd(t *testing.T) {
6060
true,
6161
},
6262
"all evidence (default pagination)": {
63-
[]string{},
63+
[]string{
64+
fmt.Sprintf("--%s=text", flags.FlagOutput),
65+
},
6466
func() client.Context {
6567
bz, _ := encCfg.Codec.Marshal(&sdk.TxResponse{})
6668
c := clitestutil.NewMockTendermintRPC(abci.ResponseQuery{

x/gov/keeper/proposal_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,12 @@ func (suite *KeeperTestSuite) TestDeleteProposalInVotingPeriod() {
112112
}
113113

114114
func (suite *KeeperTestSuite) TestActivateVotingPeriod() {
115-
testCases := map[string]struct {
115+
testCases := []struct {
116+
name string
116117
expedited bool
117118
}{
118-
"regular proposal": {},
119-
"expedited proposal": {
120-
expedited: true,
121-
},
119+
{name: "regular proposal", expedited: false},
120+
{name: "expedited proposal", expedited: true},
122121
}
123122

124123
for _, tc := range testCases {

0 commit comments

Comments
 (0)