Plugins: Make file system path handling in tests OS agnostic (#79651)
* make path handling OS agnostic * PR feedback * fix input for test case
This commit is contained in:
@@ -365,7 +365,7 @@ func TestFSPathSeparatorFiles(t *testing.T) {
|
||||
} {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
pfs, err := newPathSeparatorOverrideFS(
|
||||
"/", plugins.NewInMemoryFS(
|
||||
tc.sep, plugins.NewInMemoryFS(
|
||||
map[string][]byte{"a": nil, strings.Join([]string{"a", "b", "c"}, tc.sep): nil},
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user