Skip to content

Commit

Permalink
test: fix fake chat stream
Browse files Browse the repository at this point in the history
  • Loading branch information
zwpaper committed Nov 25, 2024
1 parent c553092 commit 9e0a76f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ee/tabby-webserver/src/service/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,9 @@ mod tests {
async fn test_create_run() {
let db = DbConn::new_in_memory().await.unwrap();
let user_id = create_user(&db).await.as_id();
let chat: Arc<dyn ChatCompletionStream> = Arc::new(FakeChatCompletionStream);
let chat: Arc<dyn ChatCompletionStream> = Arc::new(FakeChatCompletionStream {
return_error: false,
});
let code: Arc<dyn CodeSearch> = Arc::new(FakeCodeSearch);
let doc: Arc<dyn DocSearch> = Arc::new(FakeDocSearch);
let context: Arc<dyn ContextService> = Arc::new(FakeContextService);
Expand Down

0 comments on commit 9e0a76f

Please sign in to comment.