diff --git a/testifycheck/testifycheck_test.go b/testifycheck/testifycheck_test.go index c1e3b71..6abb9ac 100644 --- a/testifycheck/testifycheck_test.go +++ b/testifycheck/testifycheck_test.go @@ -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/...") } diff --git a/tools/testtool/commands/test_submission.go b/tools/testtool/commands/test_submission.go index 186041f..8621fae 100644 --- a/tools/testtool/commands/test_submission.go +++ b/tools/testtool/commands/test_submission.go @@ -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) }