Skip to content

Commit 8869755

Browse files
committed
Fix tests mock
1 parent 7111890 commit 8869755

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/eca/features/chat_test.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[babashka.fs :as fs]
44
[clojure.string :as string]
55
[clojure.test :refer [deftest is testing]]
6+
[eca.config :as config]
67
[eca.features.chat :as f.chat]
78
[eca.features.chat.lifecycle :as lifecycle]
89
[eca.features.prompt :as f.prompt]
@@ -21,7 +22,8 @@
2122
llm-api/sync-prompt! (constantly nil)
2223
f.tools/call-tool! (:call-tool-mock mocks)
2324
f.tools/all-tools (:all-tools-mock mocks)
24-
f.tools/approval (constantly :allow)]
25+
f.tools/approval (constantly :allow)
26+
config/await-plugins-resolved! (constantly true)]
2527
(h/config! {:env "test"})
2628
(swap! (h/db*) update :models
2729
(fn [models]

0 commit comments

Comments
 (0)