Skip to content

Commit

Permalink
chore: remove envtest
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-ibra committed Jun 10, 2024
1 parent 04a9245 commit 8398cf1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 176 deletions.
18 changes: 0 additions & 18 deletions tests/integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,13 @@ import (
validator "github.com/validator-labs/validatorctl/tests/integration/_validator"
"github.com/validator-labs/validatorctl/tests/integration/common"
"github.com/validator-labs/validatorctl/tests/utils/test"
"github.com/validator-labs/validatorctl/tests/utils/test/manager"
)

var (
tm *manager.Manager
)

func TestIntegrationSuite(t *testing.T) {
if err := setup(); err != nil {
t.Errorf("failed to setup integration test suite: %v", err)
}
runSuite(t)
if err := teardown(); err != nil {
t.Errorf("failed to teardown integration test suite: %v", err)
}
}

func runSuite(t *testing.T) {
Expand Down Expand Up @@ -60,15 +52,5 @@ func setup() error {

// Initialze config, workspace, binaries, logger
cmd.InitConfig()

// Initialize envtest
tm = manager.NewTestManager()
return nil
}

func teardown() error {
if tm != nil { // tm may be nil if setup() failed to initialize it
return tm.DestroyEnvironment()
}
return nil
}
158 changes: 0 additions & 158 deletions tests/utils/test/manager/manager.go

This file was deleted.

0 comments on commit 8398cf1

Please sign in to comment.