Skip to content

Commit c7da561

Browse files
committed
require C:\Windows exists in tests
1 parent ac5c232 commit c7da561

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

agent/ls_internal_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ func TestListFilesListDrives(t *testing.T) {
190190
}
191191
resp, err = listFiles(query)
192192
require.NoError(t, err)
193+
// System directory should always exist
194+
require.Contains(t, resp.Contents, LSFile{
195+
Name: "Windows",
196+
AbsolutePathString: "C:\\Windows",
197+
IsDir: true,
198+
})
193199

194200
query = LSRequest{
195201
// Network drives are not supported.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy