From 0acb66fd3b825ba715c020bd8a4d6fbd0699ecf9 Mon Sep 17 00:00:00 2001 From: tigp <24852530+tigp@users.noreply.github.com> Date: Tue, 1 May 2018 16:14:53 +0200 Subject: [PATCH] Remove tmp file if test failed --- sign/sign_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sign/sign_test.go b/sign/sign_test.go index 7f9b7ef..cd37b4b 100644 --- a/sign/sign_test.go +++ b/sign/sign_test.go @@ -184,6 +184,7 @@ func TestSignPDF(t *testing.T) { if err != nil { input_file.Close() + os.Remove(outputFile.Name()) t.Errorf("%s: %s", f.Name(), err.Error()) return }