Skip to content

Commit d08118a

Browse files
committed
tests: make integration tests less flaky
1 parent 661592d commit d08118a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

integration-test/integration/chat/commands_test.clj

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,17 @@
6969
{:command "bash"
7070
:args ["-c" (str "cd " h/mcp-server-sample-path " && clojure -M:server")]})}})}))
7171
(eca/notify! (fixture/initialized-notification))
72-
73-
(Thread/sleep 10000) ;; wait MCP server start TODO Improve this
72+
(testing "ECA tools"
73+
(is (match? {:type "native"}
74+
(eca/client-awaits-server-notification :tool/serverUpdated))))
75+
(testing "Mcp starting"
76+
(is (match? {:type "mcp"
77+
:name "mcpServerSample"}
78+
(eca/client-awaits-server-notification :tool/serverUpdated))))
79+
(testing "Mcp started"
80+
(is (match? {:type "mcp"
81+
:name "mcpServerSample"}
82+
(eca/client-awaits-server-notification :tool/serverUpdated))))
7483

7584
(testing "MCP prompts available when querying commands"
7685
(let [resp (eca/request! (fixture/chat-query-commands-request

0 commit comments

Comments
 (0)