Skip to content

Commit

Permalink
revert LookPath
Browse files Browse the repository at this point in the history
Signed-off-by: okJiang <[email protected]>
  • Loading branch information
okJiang committed Oct 21, 2024
1 parent 8e7a450 commit 38e4ae1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/integrations/realcluster/real_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,9 @@ type realClusterSuite struct {

var (
playgroundLogDir = filepath.Join("tmp", "real_cluster", "playground")
tiupBin string
tiupBin = os.Getenv("HOME") + "/.tiup/bin/tiup"
)

func init() {
var err error
tiupBin, err = exec.LookPath("tiup")
if err != nil {
panic(err)
}
}

// SetupSuite will run before the tests in the suite are run.
func (s *realClusterSuite) SetupSuite() {
t := s.T()
Expand Down

0 comments on commit 38e4ae1

Please sign in to comment.