Fix appveyor tests

This commit is contained in:
Dmytro Manchynskyi 2022-05-27 16:55:44 +03:00
parent 0ec4cd15a0
commit 76d7118300
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ package zipfs
import (
"archive/zip"
"io/fs"
"os"
"path/filepath"
"reflect"
"testing"
@ -119,7 +119,7 @@ func TestZipFsNoDirEntry(t *testing.T) {
"testDir1": true,
"testDir1/testFile": false,
}
err = afero.Walk(zfs, "", func(path string, info fs.FileInfo, err error) error {
err = afero.Walk(zfs, "", func(path string, info os.FileInfo, err error) error {
path = filepath.ToSlash(path)
if isDir, ok := expected[path]; ok {
if isDir != info.IsDir() {