mirror of https://github.com/spf13/afero.git
Fix failing tests on Windows with Go 1.20
This commit is contained in:
parent
501e8d313c
commit
d92c300a1b
|
@ -100,6 +100,7 @@ func TestIOFSNativeDirEntryWhenPossible(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
defer dir2.Close()
|
||||||
|
|
||||||
assertDirEntries := func(entries []fs.DirEntry, ordered bool) {
|
assertDirEntries := func(entries []fs.DirEntry, ordered bool) {
|
||||||
if len(entries) != numFiles {
|
if len(entries) != numFiles {
|
||||||
|
|
Loading…
Reference in New Issue