guard rm temp dirs

This commit is contained in:
zricethezav committed 2018-03-02 17:19:11 -06:00
1 parent 0ed0489c2d
commit c019a9d80d
2 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ func TestWriteReport(t *testing.T) {
opts, _ = defaultOptions()
r := newRepo("fakerepo", "github.com", "")
r.leaks = []Leak{*sampleLeak(), *sampleLeak()}
r.writeReport()
r.writeReport(r.leaks)
if _, err := os.Stat("fakerepo_leaks.json"); os.IsNotExist(err) {
t.Error()
} else {