Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
remove temporary qlog directory in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Aug 20, 2020
1 parent c95fb48 commit bda78b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ var _ = Describe("qlogger", func() {
initQlogger(qlogDir)
})

AfterEach(func() {
Expect(os.RemoveAll(qlogDir)).To(Succeed())
})

getFile := func() os.FileInfo {
files, err := ioutil.ReadDir(qlogDir)
Expect(err).ToNot(HaveOccurred())
Expand Down

0 comments on commit bda78b5

Please sign in to comment.