Skip to content

Commit 9cdc533

Browse files
committed
Fix test
1 parent a49a246 commit 9cdc533

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/eca/features/tools/filesystem_test.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585
fs/directory? (constantly false)]
8686
((get-in f.tools.filesystem/definitions ["read_file" :handler])
8787
{"path" (h/file-path "/foo/qux")}
88-
{:db {:workspace-folders [{:uri (h/file-uri "file:///foo/bar/baz") :name "foo"}]}})))))
88+
{:db {:workspace-folders [{:uri (h/file-uri "file:///foo/bar/baz") :name "foo"}]}
89+
:config {:toolCall {:readFile {:maxLines 2000}}}})))))
8990
(testing "with line_offset"
9091
(is (match?
9192
{:error false
@@ -96,7 +97,8 @@
9697
fs/readable? (constantly true)]
9798
((get-in f.tools.filesystem/definitions ["read_file" :handler])
9899
{"path" (h/file-path "/foo/qux") "line_offset" 2}
99-
{:db {:workspace-folders [{:uri (h/file-uri "file:///foo/bar/baz") :name "foo"}]}})))))
100+
{:db {:workspace-folders [{:uri (h/file-uri "file:///foo/bar/baz") :name "foo"}]}
101+
:config {:toolCall {:readFile {:maxLines 2000}}}})))))
100102
(testing "with limit"
101103
(is (match?
102104
{:error false

0 commit comments

Comments
 (0)