Skip to content

Commit

Permalink
tc fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsingh33 committed Dec 18, 2023
1 parent ea11f4f commit 4160aaf
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions app/upgrades/mainnet/v13/upgrade_test.go
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
package v13_test

import (
"testing"
// import (
// "testing"

"github.com/stretchr/testify/suite"
// "github.com/stretchr/testify/suite"

"github.com/comdex-official/comdex/app"
v13 "github.com/comdex-official/comdex/app/upgrades/mainnet/v13"
)
// "github.com/comdex-official/comdex/app"
// v13 "github.com/comdex-official/comdex/app/upgrades/mainnet/v13"
// )

type UpgradeTestSuite struct {
app.KeeperTestHelper
}
// type UpgradeTestSuite struct {
// app.KeeperTestHelper
// }

func (s *UpgradeTestSuite) SetupTest() {
s.Setup()
}
// func (s *UpgradeTestSuite) SetupTest() {
// s.Setup()
// }

func TestKeeperTestSuite(t *testing.T) {
suite.Run(t, new(UpgradeTestSuite))
}
// func TestKeeperTestSuite(t *testing.T) {
// suite.Run(t, new(UpgradeTestSuite))
// }

// Ensures the test does not error out.
func (s *UpgradeTestSuite) TestUpgrade() {
s.Setup()
// // Ensures the test does not error out.
// func (s *UpgradeTestSuite) TestUpgrade() {
// s.Setup()

preUpgradeChecks(s)
// preUpgradeChecks(s)

upgradeHeight := int64(5)
s.ConfirmUpgradeSucceeded(v13.UpgradeName, upgradeHeight)
// upgradeHeight := int64(5)
// s.ConfirmUpgradeSucceeded(v13.UpgradeName, upgradeHeight)

postUpgradeChecks(s)
}
// postUpgradeChecks(s)
// }

func preUpgradeChecks(s *UpgradeTestSuite) {
// func preUpgradeChecks(s *UpgradeTestSuite) {

}
// }

func postUpgradeChecks(s *UpgradeTestSuite) {
// func postUpgradeChecks(s *UpgradeTestSuite) {

// Ensure the gov params have MinInitialDepositRatio added
gp := s.App.GovKeeper.GetParams(s.Ctx)
s.Require().Equal(gp.MinInitialDepositRatio, "0.200000000000000000")
}
// // Ensure the gov params have MinInitialDepositRatio added
// gp := s.App.GovKeeper.GetParams(s.Ctx)
// s.Require().Equal(gp.MinInitialDepositRatio, "0.200000000000000000")
// }

0 comments on commit 4160aaf

Please sign in to comment.