Skip to content

Commit

Permalink
refactor: remove unused ginkgo
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Mar 20, 2024
1 parent bdb2207 commit c646504
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 45 deletions.
7 changes: 1 addition & 6 deletions x/delegation/keeper/setup_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package keeper_test

import (
"github.com/ExocoreNetwork/exocore/testutil"
"testing"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/ExocoreNetwork/exocore/testutil"

"github.com/stretchr/testify/suite"
)
Expand All @@ -20,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
8 changes: 1 addition & 7 deletions x/deposit/keeper/setup_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package keeper_test

import (
"github.com/ExocoreNetwork/exocore/testutil"
"testing"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/ExocoreNetwork/exocore/testutil"

"github.com/stretchr/testify/suite"
)
Expand All @@ -19,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
7 changes: 1 addition & 6 deletions x/restaking_assets_manage/keeper/setup_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package keeper_test

import (
"github.com/ExocoreNetwork/exocore/testutil"
"testing"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/ExocoreNetwork/exocore/testutil"

"github.com/stretchr/testify/suite"
)
Expand All @@ -20,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
9 changes: 1 addition & 8 deletions x/reward/keeper/setup_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package keeper_test

import (
"github.com/ExocoreNetwork/exocore/testutil"
"testing"

//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/ExocoreNetwork/exocore/testutil"

"github.com/stretchr/testify/suite"
)
Expand All @@ -22,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
10 changes: 1 addition & 9 deletions x/slash/keeper/setup_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package keeper_test

import (
"github.com/ExocoreNetwork/exocore/testutil"
"testing"

//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/ExocoreNetwork/exocore/testutil"

"github.com/stretchr/testify/suite"
)
Expand All @@ -21,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
11 changes: 2 additions & 9 deletions x/withdraw/keeper/setup_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package keeper_test

import (
"github.com/ExocoreNetwork/exocore/testutil"
"testing"

//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/ExocoreNetwork/exocore/testutil"

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

Expand All @@ -20,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 c646504

Please sign in to comment.