From ff3fed22bbe04ef1767ece6c8a81c9d4f62ea5b4 Mon Sep 17 00:00:00 2001 From: Mark Rushakoff Date: Fri, 24 Feb 2023 13:14:26 -0500 Subject: [PATCH] test(x/gov): fix flaky TestActivateVotingPeriod test (#15153) --- x/gov/keeper/proposal_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/x/gov/keeper/proposal_test.go b/x/gov/keeper/proposal_test.go index fd9f8b18cc2c..47cc462558cc 100644 --- a/x/gov/keeper/proposal_test.go +++ b/x/gov/keeper/proposal_test.go @@ -68,13 +68,12 @@ func (suite *KeeperTestSuite) TestDeleteProposal() { } func (suite *KeeperTestSuite) TestActivateVotingPeriod() { - testCases := map[string]struct { + testCases := []struct { + name string expedited bool }{ - "regular proposal": {}, - "expedited proposal": { - expedited: true, - }, + {name: "regular proposal"}, + {name: "expedited proposal", expedited: true}, } for _, tc := range testCases {