Fix failing tests on Windows with Go 1.20

This commit is contained in:
Bjørn Erik Pedersen 2023-03-06 10:33:02 +01:00
parent 501e8d313c
commit d92c300a1b
1 changed files with 1 additions and 0 deletions

View File

@ -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 {