mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-08 18:41:48 +00:00
WIP: failing test
SEED=882 RUST_LOG=collab::tests::randomized_integration_tests=info MAX_PEERS=2 ITERATIONS=1 OPERATIONS=49 cargo test --package=collab random -- --nocapture
This commit is contained in:
parent
559e14799c
commit
738e161bc6
1 changed files with 12 additions and 6 deletions
|
@ -290,9 +290,10 @@ async fn test_random_collaboration(
|
|||
assert_eq!(
|
||||
guest_snapshot.entries(false).collect::<Vec<_>>(),
|
||||
host_snapshot.entries(false).collect::<Vec<_>>(),
|
||||
"{} has different snapshot than the host for worktree {}",
|
||||
"{} has different snapshot than the host for worktree {} ({:?})",
|
||||
client.username,
|
||||
id
|
||||
id,
|
||||
host_snapshot.abs_path()
|
||||
);
|
||||
assert_eq!(guest_snapshot.scan_id(), host_snapshot.scan_id());
|
||||
}
|
||||
|
@ -713,13 +714,18 @@ async fn randomly_mutate_projects(
|
|||
};
|
||||
|
||||
if active_call.read_with(cx, |call, _| call.room().is_some())
|
||||
&& project.read_with(cx, |project, _| project.is_local())
|
||||
&& project.read_with(cx, |project, _| project.is_local() && !project.is_shared())
|
||||
{
|
||||
if let Err(error) = active_call
|
||||
match active_call
|
||||
.update(cx, |call, cx| call.share_project(project.clone(), cx))
|
||||
.await
|
||||
{
|
||||
log::error!("{}: error sharing project, {:?}", client.username, error);
|
||||
Ok(project_id) => {
|
||||
log::info!("{}: shared project with id {}", client.username, project_id);
|
||||
}
|
||||
Err(error) => {
|
||||
log::error!("{}: error sharing project, {:?}", client.username, error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -729,7 +735,7 @@ async fn randomly_mutate_projects(
|
|||
let paths = client.fs.paths().await;
|
||||
let path = paths.choose(&mut *rng.lock()).unwrap();
|
||||
log::info!(
|
||||
"{}: find or create local worktree for path {:?}",
|
||||
"{}: finding/creating local worktree for path {:?}",
|
||||
client.username,
|
||||
path
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue