windows: Enable collab tests (#27587)

Release Notes:

- N/A
This commit is contained in:
张小白 2025-03-27 20:42:22 +08:00 committed by GitHub
parent 71ddb3dad4
commit 06960670bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 277 additions and 234 deletions

View file

@ -43,6 +43,7 @@ use std::{
Arc,
},
};
use util::path;
use workspace::{Workspace, WorkspaceStore};
#[cfg(not(target_os = "macos"))]
@ -741,7 +742,7 @@ impl TestClient {
pub async fn build_test_project(&self, cx: &mut TestAppContext) -> Entity<Project> {
self.fs()
.insert_tree(
"/a",
path!("/a"),
json!({
"1.txt": "one\none\none",
"2.js": "function two() { return 2; }",
@ -749,7 +750,7 @@ impl TestClient {
}),
)
.await;
self.build_local_project("/a", cx).await.0
self.build_local_project(path!("/a"), cx).await.0
}
pub async fn host_workspace(