Skip to content

Commit

Permalink
correct test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Mar 29, 2023
1 parent ce057b2 commit d5337c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/extract/extract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var _ = Describe("Extract", func() {
Ω(err).ShouldNot(HaveOccurred())
})
AfterEach(func() {
_ = os.Remove(tempDir)
_ = os.RemoveAll(tempDir)
})

Context("File", func() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/makefile/make_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ var _ = Describe("Make", func() {
var tempDir string
BeforeEach(func() {
var err error
tempDir, err = os.MkdirTemp("", "toolbox_extract_test_")
tempDir, err = os.MkdirTemp("", "toolbox_make_test_")
Ω(err).ShouldNot(HaveOccurred())
getRelease = func(client *resty.Client, repo string, quiet bool) (*types.GithubRelease, error) {
return &types.GithubRelease{TagName: "v0.2.1"}, nil
}
})
AfterEach(func() {
_ = os.Remove(tempDir)
_ = os.RemoveAll(tempDir)
getRelease = github.LatestRelease
})
Context("Generate", func() {
Expand Down

0 comments on commit d5337c1

Please sign in to comment.