forked from mirror/afero
remove debug output
This commit is contained in:
parent
4f332f79e7
commit
3d990a0494
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue