Skip to content

Commit f8a8181

Browse files
committed
Fix windows tests
1 parent 2354227 commit f8a8181

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/eca/features/context_test.clj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
(h/reset-components!)
1717
(let [root (h/file-path "/fake/repo")
1818
;; Fake filesystem entries under the root
19-
fake-paths [(str root "/dir")
20-
(str root "/foo.txt")
21-
(str root "/dir/nested.txt")
22-
(str root "/bar.txt")]]
19+
fake-paths [(h/file-path (str root "/dir"))
20+
(h/file-path (str root "/foo.txt"))
21+
(h/file-path (str root "/dir/nested.txt"))
22+
(h/file-path (str root "/bar.txt"))]]
2323
(swap! (h/db*) assoc :workspace-folders [{:uri (h/file-uri "file:///fake/repo")}])
2424
(with-redefs [f.context/all-files-from #'f.context/all-files-from*
2525
fs/glob (fn [_root-filename pattern]
@@ -33,10 +33,10 @@
3333
[{:type "repoMap"}
3434
{:type "cursor"}
3535
{:type "directory" :path root}
36-
{:type "directory" :path (str root "/dir")}
37-
{:type "file" :path (str root "/foo.txt")}
38-
{:type "file" :path (str root "/dir/nested.txt")}
39-
{:type "file" :path (str root "/bar.txt")}
36+
{:type "directory" :path (h/file-path (str root "/dir"))}
37+
{:type "file" :path (h/file-path (str root "/foo.txt"))}
38+
{:type "file" :path (h/file-path (str root "/dir/nested.txt"))}
39+
{:type "file" :path (h/file-path (str root "/bar.txt"))}
4040
{:type "mcpResource" :uri "mcp://r1"}]
4141
(f.context/all-contexts nil (h/db*) (h/config)))))))
4242

0 commit comments

Comments
 (0)