Skip to content

Commit 1e016b2

Browse files
committed
Fix windows tests
1 parent 267a8da commit 1e016b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/eca/features/context.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
(cond
3636
;; Absolute path
3737
(string/starts-with? mention "/")
38-
mention
38+
(str (fs/canonicalize (fs/file mention)))
3939

4040
;; Relative path (./... or ../...)
4141
(or (string/starts-with? mention "./")

test/eca/features/context_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
b-content (multi-str
231231
"- do bar")]
232232
(with-redefs [llm-api/refine-file-context (fn [p _l]
233-
(condp = (h/file-path p)
233+
(condp = p
234234
a-file a-content
235235
b-file b-content))]
236236
(is (match?

0 commit comments

Comments
 (0)