Skip to content

Commit 6a05bdc

Browse files
committed
Fix integration tests
1 parent 58b5952 commit 6a05bdc

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ result
3434
docs/README.md
3535
docs/CHANGELOG.md
3636
docs/images/
37+
38+
integration-test/stderr.txt

integration-test/integration/chat/openai_test.clj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@
130130
(let [req-id 0
131131
resp (eca/request! (fixture/chat-prompt-request
132132
{:request-id req-id
133-
:model "gpt-5"
133+
:model "openai/gpt-5"
134134
:message "hello!"}))
135135
chat-id (reset! chat-id* (:chatId resp))]
136136

137137
(is (match?
138138
{:chatId (m/pred string?)
139-
:model "gpt-5"
139+
:model "openai/gpt-5"
140140
:status "success"}
141141
resp))
142142

@@ -167,13 +167,13 @@
167167
resp (eca/request! (fixture/chat-prompt-request
168168
{:request-id req-id
169169
:chat-id @chat-id*
170-
:model "gpt-5"
170+
:model "openai/gpt-5"
171171
:message "how are you?"}))
172172
chat-id @chat-id*]
173173

174174
(is (match?
175175
{:chatId (m/pred string?)
176-
:model "gpt-5"
176+
:model "openai/gpt-5"
177177
:status "success"}
178178
resp))
179179

@@ -215,13 +215,13 @@
215215
(let [req-id 0
216216
resp (eca/request! (fixture/chat-prompt-request
217217
{:request-id req-id
218-
:model "gpt-5"
218+
:model "openai/gpt-5"
219219
:message "What files you see?"}))
220220
chat-id (reset! chat-id* (:chatId resp))]
221221

222222
(is (match?
223223
{:chatId (m/pred string?)
224-
:model "gpt-5"
224+
:model "openai/gpt-5"
225225
:status "success"}
226226
resp))
227227

integration-test/integration/eca.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
(start-server binary []))
1717
([binary args]
1818
(p/process (into [(.getCanonicalPath (io/file binary)) "server" "--log-level" "debug"] args)
19-
{:dir "integration-test/sample-test/"})))
19+
{:err (io/file (.getParent (io/file *eca-binary-path*)) "integration-test" "stderr.txt")
20+
:dir "integration-test/sample-test/"})))
2021

2122
(defn start-process! []
2223
(let [server (start-server *eca-binary-path*)

0 commit comments

Comments
 (0)