From adcfe942572ac514964ae5f8b2bfb8f42398d1c7 Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Sat, 27 Apr 2019 08:30:13 +0200 Subject: [PATCH] Fix test for helpers Signed-off-by: Cosmin Cojocar --- helpers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers_test.go b/helpers_test.go index 1c28c4e..636ef6d 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -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()) })