diff --git a/crates/ide-lsp/tests/mock_server.rs b/crates/ide-lsp/tests/mock_server.rs index 99e76d5cd..66fe5f3b5 100644 --- a/crates/ide-lsp/tests/mock_server.rs +++ b/crates/ide-lsp/tests/mock_server.rs @@ -8859,7 +8859,7 @@ async fn c_family_files_use_sourcekit_lsp_only_with_an_xcode_bsp_config() { h.wait_status("sourcekit-lsp", ServerStatus::Ready).await; eventually(|| h.launcher.state("sourcekit-lsp").docs.lock().contains_key(&uri_of(&path))).await; assert!(h.statuses("clangd").is_empty(), "{language}"); - assert_eq!(h.mgr.servers().iter().map(|s| s.root.clone()).collect::>(), [h.root.clone()]); + assert_eq!(h.mgr.servers().iter().map(|s| s.root.clone()).collect::>(), std::slice::from_ref(&h.root)); h.mgr.shutdown_all().await; // sourcekit-lsp not installed: clangd still serves.