Skip to content

Commit

Permalink
reverted test to reduce changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nofun97 committed Sep 14, 2020
1 parent ed4ccf5 commit 6f053d3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions composite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"io"
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"
)
Expand Down Expand Up @@ -480,21 +479,12 @@ func TestUnionFileReaddirAskForTooMany(t *testing.T) {

const testFiles = 5
for i := 0; i < testFiles; i++ {
file, err := filepath.Abs(fmt.Sprintf("/file%d.txt", i))
if err != nil {
t.Fatal(err)
}
WriteFile(base, file, []byte("afero"), 0777)
WriteFile(base, fmt.Sprintf("file%d.txt", i), []byte("afero"), 0777)
}

ufs := &CopyOnWriteFs{base: base, layer: overlay}

root, err := filepath.Abs("/")
if err != nil {
t.Fatal(err)
}

f, err := ufs.Open(root)
f, err := ufs.Open("")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 6f053d3

Please sign in to comment.