scan: fix dropped errors (#424)

This commit is contained in:
Lars Lehtonen authored and GitHub committed 2020-08-20 15:42:42 -04:00
1 parent ef4655fcf1
commit b5ca2ba614
3 files changed
+14

No files matched your search

+3
View File
@@ -422,6 +422,9 @@ func TestScan(t *testing.T) {
}
err = m.Report()
if err != nil {
t.Error(err)
}
if test.wantEmpty {
if len(m.GetLeaks()) != 0 {