From 5ef0c2aaf7e298c58a6eb7b3d15b1f071ebd2b5f Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Fri, 30 Apr 2021 13:10:10 +0300 Subject: [PATCH] Remove debug prints --- testifycheck/testifycheck_test.go | 7 ------- tools/testtool/commands/test_submission.go | 3 ++- 2 files changed, 2 insertions(+), 8 deletions(-) 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) }