Skip to content

Commit

Permalink
test: improved cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Apr 12, 2024
1 parent 0362620 commit 062fed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ func (s *MySuite) TestInterchaintestScaffold() {
err = os.Chdir("e2e/interchaintestv8")
s.Require().NoError(err)

defer func() {
s.T().Cleanup(func() {
err = os.Chdir("../..")
s.Require().NoError(err)

_, err := exec.Command("rm", "-rf", "e2e").Output()
s.Require().NoError(err)
}()
})

_, err = exec.Command("golangci-lint", "run").Output()
s.Require().NoError(err)
Expand Down

0 comments on commit 062fed2

Please sign in to comment.