Skip to content

Commit 4816f4a

Browse files
committed
[testing] fix windows path
1 parent 0b44887 commit 4816f4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/filters/fileserver/fileserver_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ func TestFileNeedCache(t *testing.T) {
260260
for _, tc := range testCases {
261261
if runtime.GOOS == "windows" {
262262
tc.path = toWindowsPath(tc.path)
263+
fs.spec.Cache.CacheFileExtensionFilters = []FileExtensionFilter{
264+
{Pattern: []string{toWindowsPath("*.html"), toWindowsPath("*.css")}},
265+
{Pattern: []string{toWindowsPath("/usr/*.js")}},
266+
{Pattern: []string{toWindowsPath("usr/test/*.png")}},
267+
}
263268
}
264269
input := &filePath{path: tc.path}
265270
fs.setFileNeedCache(input)

0 commit comments

Comments
 (0)