Test for security vulnerabilities

This commit is contained in:
Arthur Barr
2017-12-05 10:17:31 +00:00
parent 70f1a43fd8
commit f5515d72a3
2 changed files with 27 additions and 2 deletions

View File

@@ -143,11 +143,11 @@ func getCoverageExitCode(t *testing.T, orig int64) int64 {
f := filepath.Join(coverageDir(t), "exitCode")
_, err := os.Stat(f)
if err != nil {
t.Log(err)
//t.Log(err)
return orig
}
// Remove the file, ready for the next test
//defer os.Remove(f)
defer os.Remove(f)
buf, err := ioutil.ReadFile(f)
if err != nil {
t.Log(err)