Skip to content

Commit 3c94665

Browse files
committed
Fix integration tests
1 parent ea522a4 commit 3c94665

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

integration-test/integration/chat/github_copilot_test.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
:status "prompting"}
8585
resp))
8686

87+
(match-content chat-id "system" {:type "metadata" :title "Some Cool Title"})
8788
(match-content chat-id "user" {:type "text" :text "What foo?\n"})
8889
(match-content chat-id "system" {:type "progress" :state "running" :text "Waiting model"})
8990
(match-content chat-id "system" {:type "progress" :state "running" :text "Generating"})

integration-test/integration/chat/google_test.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
:status "prompting"}
8585
resp))
8686

87+
(match-content chat-id "system" {:type "metadata" :title "Some Cool Title"})
8788
(match-content chat-id "user" {:type "text" :text "What foo?\n"})
8889
(match-content chat-id "system" {:type "progress" :state "running" :text "Waiting model"})
8990
(match-content chat-id "system" {:type "progress" :state "running" :text "Generating"})

integration-test/llm_mock/openai_chat.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
false)
113113
(if (string/includes? (:content (first (:messages body))) llm.mocks/chat-title-generator-str)
114114
(do
115-
(Thread/sleep 2000) ;; avoid tests failing with mismatch order of contents
115+
(Thread/sleep 3000) ;; avoid tests failing with mismatch order of contents
116116
(chat-title-text-0 ch))
117117
(do
118118
(llm.mocks/set-req-body! llm.mocks/*case* normalized-body)

0 commit comments

Comments
 (0)