From c43eafbf9ae07fae2ac8c7ca6aac2867b3e5b240 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Wed, 24 Jul 2024 16:51:18 +0300 Subject: [PATCH] Update the test code to newer realities (#15084) Follow-up of https://github.com/zed-industries/zed/pull/14886 We do not require the branch to be up-to-date with `main` before merging, and in 4 days some related test code got reworked so that there were no conflicts and it slipped. Release Notes: - N/A --- crates/assistant/src/inline_assistant.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/assistant/src/inline_assistant.rs b/crates/assistant/src/inline_assistant.rs index c3a31fb94a..55c89f4028 100644 --- a/crates/assistant/src/inline_assistant.rs +++ b/crates/assistant/src/inline_assistant.rs @@ -2789,8 +2789,9 @@ mod tests { #[gpui::test(iterations = 10)] async fn test_autoindent_respects_tabs_in_selection(cx: &mut TestAppContext) { + cx.update(LanguageModelRegistry::test); + cx.update(completion::LanguageModelCompletionProvider::test); cx.set_global(cx.update(SettingsStore::test)); - cx.update(|cx| FakeCompletionProvider::setup_test(cx)); cx.update(language_settings::init); let text = indoc! {"