mirror of https://github.com/spf13/afero.git
Fix appveyor tests
This commit is contained in:
parent
0ec4cd15a0
commit
76d7118300
|
@ -2,7 +2,7 @@ package zipfs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"archive/zip"
|
"archive/zip"
|
||||||
"io/fs"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -119,7 +119,7 @@ func TestZipFsNoDirEntry(t *testing.T) {
|
||||||
"testDir1": true,
|
"testDir1": true,
|
||||||
"testDir1/testFile": false,
|
"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)
|
path = filepath.ToSlash(path)
|
||||||
if isDir, ok := expected[path]; ok {
|
if isDir, ok := expected[path]; ok {
|
||||||
if isDir != info.IsDir() {
|
if isDir != info.IsDir() {
|
||||||
|
|
Loading…
Reference in New Issue