Skip to content

Commit b2959db

Browse files
committed
require C:\Windows exists in tests
1 parent c58b720 commit b2959db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

agent/ls_internal_test.go

+6
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)