1
0
mirror of https://github.com/securego/gosec.git synced 2024-12-26 20:53:56 +02:00

Fix test for helpers

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
Cosmin Cojocar 2019-04-27 08:30:13 +02:00 committed by Grant Murphy
parent 5ae52660ae
commit adcfe94257

View File

@ -20,7 +20,7 @@ var _ = Describe("Helpers", func() {
_, err = ioutil.TempFile(dir, "test*.go")
Expect(err).ShouldNot(HaveOccurred())
})
JustAfterEach(func() {
AfterEach(func() {
err := os.RemoveAll(dir)
Expect(err).ShouldNot(HaveOccurred())
})