Remove debug prints

This commit is contained in:
Fedor Korotkiy 2021-04-30 13:10:10 +03:00
parent 50058126cb
commit 5ef0c2aaf7
2 changed files with 2 additions and 8 deletions

View file

@ -1,19 +1,12 @@
package testifycheck
import (
"os"
"os/exec"
"testing"
"golang.org/x/tools/go/analysis/analysistest"
)
func Test(t *testing.T) {
debugOut, err := exec.Command("go", "env", "GOROOT").CombinedOutput()
if err != nil {
_, _ = os.Stderr.Write(debugOut)
}
testdata := analysistest.TestData()
analysistest.Run(t, testdata, Analyzer, "tests/...")
}

View file

@ -217,7 +217,8 @@ func runTests(testDir, privateRepo, problem string) error {
log.Fatal(err)
}
goCache, err := ioutil.TempDir("/tmp", "gocache")
var goCache string
goCache, err = ioutil.TempDir("/tmp", "gocache")
if err != nil {
log.Fatal(err)
}