remove debug output

This commit is contained in:
Albert Z Wang 2017-12-12 20:08:50 -05:00
parent 4f332f79e7
commit 3d990a0494
1 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import (
"path/filepath" "path/filepath"
"runtime" "runtime"
"testing" "testing"
"fmt"
) )
func TestBasePath(t *testing.T) { func TestBasePath(t *testing.T) {
@ -142,7 +141,6 @@ func TestNestedBasePaths(t *testing.T) {
} }
} }
func TestBasePathOpenFile(t *testing.T) { func TestBasePathOpenFile(t *testing.T) {
baseFs := &MemMapFs{} baseFs := &MemMapFs{}
baseFs.MkdirAll("/base/path/tmp", 0777) baseFs.MkdirAll("/base/path/tmp", 0777)
@ -178,7 +176,6 @@ func TestBasePathTempFile(t *testing.T) {
if err != nil { if err != nil {
t.Fatalf("Failed to TempDir: %v", err) t.Fatalf("Failed to TempDir: %v", err)
} }
fmt.Println(tDir)
if filepath.Dir(tDir) != filepath.Clean("/tmp") { if filepath.Dir(tDir) != filepath.Clean("/tmp") {
t.Fatalf("Tempdir realpath leaked: %s", tDir) t.Fatalf("Tempdir realpath leaked: %s", tDir)
} }
@ -190,4 +187,4 @@ func TestBasePathTempFile(t *testing.T) {
if expected, actual := tDir, filepath.Dir(tempFile.Name()); expected != actual { if expected, actual := tDir, filepath.Dir(tempFile.Name()); expected != actual {
t.Fatalf("TempFile realpath leaked: expected %s, got %s", expected, actual) t.Fatalf("TempFile realpath leaked: expected %s, got %s", expected, actual)
} }
} }