From d92c300a1b6eaa1690b7aecab2ef7fd0d64a94e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 6 Mar 2023 10:33:02 +0100 Subject: [PATCH] Fix failing tests on Windows with Go 1.20 --- iofs_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/iofs_test.go b/iofs_test.go index cd940f2..829e919 100644 --- a/iofs_test.go +++ b/iofs_test.go @@ -100,6 +100,7 @@ func TestIOFSNativeDirEntryWhenPossible(t *testing.T) { if err != nil { t.Fatal(err) } + defer dir2.Close() assertDirEntries := func(entries []fs.DirEntry, ordered bool) { if len(entries) != numFiles {