Skip to content

Commit 12537d7

Browse files
committed
Fix windows tests
1 parent 5603bbd commit 12537d7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/eca/features/tools_test.clj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,15 @@
195195
(testing "We adapt output if json"
196196
(is (match?
197197
{:contents [{:type :text
198-
:text (multi-str "{"
199-
" \"foo\" : \"123\","
200-
" \"bar\" : 234"
201-
"}")}]
198+
:text (if h/windows?
199+
(multi-str "{\r"
200+
" \"foo\" : \"123\",\r"
201+
" \"bar\" : 234\r"
202+
"}")
203+
(multi-str "{"
204+
" \"foo\" : \"123\","
205+
" \"bar\" : 234"
206+
"}"))}]
202207
:error false}
203208
(with-redefs [f.mcp/call-tool! (constantly {:contents [{:type :text
204209
:text "{\"foo\": \"123\", \"bar\": 234}"}]

0 commit comments

Comments
 (0)