Remove tmp file if test failed
This commit is contained in:
@@ -184,6 +184,7 @@ func TestSignPDF(t *testing.T) {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
input_file.Close()
|
input_file.Close()
|
||||||
|
os.Remove(outputFile.Name())
|
||||||
t.Errorf("%s: %s", f.Name(), err.Error())
|
t.Errorf("%s: %s", f.Name(), err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user