From 31227831c33aa129ff644eaf60310d4f98d7a57a Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 12 May 2025 12:02:15 +0200 Subject: [PATCH] Fix compile errors in tests --- .../assistant_context_editor/src/context/context_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/assistant_context_editor/src/context/context_tests.rs b/crates/assistant_context_editor/src/context/context_tests.rs index 7f9d0d893f09e0ef89e4b268e9a6ca4c03404452..de16aea356bee16b0f5efbcc36314c90cabf3513 100644 --- a/crates/assistant_context_editor/src/context/context_tests.rs +++ b/crates/assistant_context_editor/src/context/context_tests.rs @@ -1,7 +1,7 @@ use crate::{ AssistantContext, AssistantEdit, AssistantEditKind, CacheStatus, ContextEvent, ContextId, ContextOperation, ContextSummary, InvokedSlashCommandId, MessageCacheMetadata, MessageId, - MessageStatus, + MessageStatus, RequestType, }; use anyhow::Result; use assistant_slash_command::{ @@ -1598,7 +1598,7 @@ async fn test_summarization(cx: &mut TestAppContext) { // Send a message context.update(cx, |context, cx| { - context.assist(cx); + context.assist(RequestType::Chat, cx); }); simulate_successful_response(&fake_model, cx); @@ -1653,7 +1653,7 @@ async fn test_thread_summary_error_retry(cx: &mut TestAppContext) { // Sending another message should not trigger another summarize request context.update(cx, |context, cx| { - context.assist(cx); + context.assist(RequestType::Chat, cx); }); simulate_successful_response(&fake_model, cx); @@ -1696,7 +1696,7 @@ fn test_summarize_error( // Send a message context.update(cx, |context, cx| { - context.assist(cx); + context.assist(RequestType::Chat, cx); }); simulate_successful_response(&model, cx);