Avoid testing in memory for Windows tests

This commit is contained in:
Francesc Campoy
2021-07-26 16:14:46 -07:00
parent 9b586162d0
commit 262a2d9288

View File

@@ -5,6 +5,7 @@ package kio_test
import (
"path/filepath"
"runtime"
"strings"
"testing"
@@ -535,6 +536,11 @@ func testOnDiskAndOnMem(t *testing.T, files []mockFile, f func(t *testing.T, pat
f(t, s.Root, nil)
})
// TODO: Once fsnode supports Windows, we should also run the tests below.
if runtime.GOOS == "windows" {
return
}
t.Run("on_mem", func(t *testing.T) {
fs := filesys.MakeFsInMemory()
for _, file := range files {