Remove tmp file if test failed

This commit is contained in:
tigp
2018-05-01 16:14:53 +02:00
parent 770e29316e
commit 0acb66fd3b

View File

@@ -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
}