Skip to content

Commit

Permalink
Merge pull request #18 from leonz789/develop-leon-refactor
Browse files Browse the repository at this point in the history
refactor: remove unused ginkgo
  • Loading branch information
mikebraver authored Apr 12, 2024
2 parents ab6afe5 + 9553843 commit 458ffd9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 44 deletions.
6 changes: 0 additions & 6 deletions x/assets/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import (

"github.com/ExocoreNetwork/exocore/testutil"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

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

Expand All @@ -21,9 +18,6 @@ func TestKeeperTestSuite(t *testing.T) {
s = new(StakingAssetsTestSuite)
suite.Run(t, s)

// Run Ginkgo integration tests
RegisterFailHandler(Fail)
RunSpecs(t, "Keeper Suite")
}

func (suite *StakingAssetsTestSuite) SetupTest() {
Expand Down
6 changes: 0 additions & 6 deletions x/delegation/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import (

"github.com/ExocoreNetwork/exocore/testutil"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

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

Expand All @@ -21,9 +18,6 @@ func TestKeeperTestSuite(t *testing.T) {
s = new(DelegationTestSuite)
suite.Run(t, s)

// Run Ginkgo integration tests
RegisterFailHandler(Fail)
RunSpecs(t, "Keeper Suite")
}

func (suite *DelegationTestSuite) SetupTest() {
Expand Down
7 changes: 0 additions & 7 deletions x/deposit/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import (

"github.com/ExocoreNetwork/exocore/testutil"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

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

Expand All @@ -20,10 +17,6 @@ var s *DepositTestSuite
func TestKeeperTestSuite(t *testing.T) {
s = new(DepositTestSuite)
suite.Run(t, s)

// Run Ginkgo integration tests
RegisterFailHandler(Fail)
RunSpecs(t, "Keeper Suite")
}

func (suite *DepositTestSuite) SetupTest() {
Expand Down
8 changes: 0 additions & 8 deletions x/reward/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import (

"github.com/ExocoreNetwork/exocore/testutil"

//nolint:revive // dot imports are fine for Ginkgo
. "github.com/onsi/ginkgo/v2"
//nolint:revive // dot imports are fine for Ginkgo
. "github.com/onsi/gomega"

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

Expand All @@ -23,9 +18,6 @@ func TestKeeperTestSuite(t *testing.T) {
s = new(RewardTestSuite)
suite.Run(t, s)

// Run Ginkgo integration tests
RegisterFailHandler(Fail)
RunSpecs(t, "Keeper Suite")
}

// SetupTest setup test environment, it uses`require.TestingT` to support both `testing.T` and `testing.B`.
Expand Down
9 changes: 0 additions & 9 deletions x/slash/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import (

"github.com/ExocoreNetwork/exocore/testutil"

//nolint:revive // dot imports are fine for Ginkgo
. "github.com/onsi/ginkgo/v2"
//nolint:revive // dot imports are fine for Ginkgo
. "github.com/onsi/gomega"

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

Expand All @@ -22,10 +17,6 @@ var s *SlashTestSuite
func TestKeeperTestSuite(t *testing.T) {
s = new(SlashTestSuite)
suite.Run(t, s)

// Run Ginkgo integration tests
RegisterFailHandler(Fail)
RunSpecs(t, "Keeper Suite")
}

// SetupTest setup test environment, it uses`require.TestingT` to support both `testing.T` and `testing.B`.
Expand Down
8 changes: 0 additions & 8 deletions x/withdraw/keeper/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import (

"github.com/ExocoreNetwork/exocore/testutil"

//nolint:revive // dot imports are fine for Ginkgo
. "github.com/onsi/ginkgo/v2"
//nolint:revive // dot imports are fine for Ginkgo
. "github.com/onsi/gomega"
"github.com/stretchr/testify/suite"
)

Expand All @@ -21,10 +17,6 @@ var s *WithdrawTestSuite
func TestKeeperTestSuite(t *testing.T) {
s = new(WithdrawTestSuite)
suite.Run(t, s)

// Run Ginkgo integration tests
RegisterFailHandler(Fail)
RunSpecs(t, "Keeper Suite")
}

// SetupTest setup test environment, it uses`require.TestingT` to support both `testing.T` and `testing.B`.
Expand Down

0 comments on commit 458ffd9

Please sign in to comment.