forked from mirror/afero
remove debug output
This commit is contained in:
parent
4f332f79e7
commit
3d990a0494
|
@ -5,7 +5,6 @@ import (
|
|||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func TestBasePath(t *testing.T) {
|
||||
|
@ -142,7 +141,6 @@ func TestNestedBasePaths(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
func TestBasePathOpenFile(t *testing.T) {
|
||||
baseFs := &MemMapFs{}
|
||||
baseFs.MkdirAll("/base/path/tmp", 0777)
|
||||
|
@ -178,7 +176,6 @@ func TestBasePathTempFile(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("Failed to TempDir: %v", err)
|
||||
}
|
||||
fmt.Println(tDir)
|
||||
if filepath.Dir(tDir) != filepath.Clean("/tmp") {
|
||||
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 {
|
||||
t.Fatalf("TempFile realpath leaked: expected %s, got %s", expected, actual)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue