Fix bugs in moving channels that could cause channels to be stranded or moved unexpectedly
Made channel linking not query in a loop co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
ee16b2051e
commit
4ff44dfa3b
4 changed files with 152 additions and 95 deletions
|
@ -145,8 +145,6 @@ async fn test_core_channels(
|
|||
],
|
||||
);
|
||||
|
||||
println!("STARTING CREATE CHANNEL C");
|
||||
|
||||
let channel_c_id = client_a
|
||||
.channel_store()
|
||||
.update(cx_a, |channel_store, cx| {
|
||||
|
@ -1028,10 +1026,6 @@ async fn test_channel_moving(
|
|||
// - ep
|
||||
assert_channels_list_shape(client_c.channel_store(), cx_c, &[(channel_ep_id, 0)]);
|
||||
|
||||
println!("*******************************************");
|
||||
println!("********** STARTING LINK CHANNEL **********");
|
||||
println!("*******************************************");
|
||||
dbg!(client_b.user_id());
|
||||
client_b
|
||||
.channel_store()
|
||||
.update(cx_b, |channel_store, cx| {
|
||||
|
@ -1199,5 +1193,5 @@ fn assert_channels_list_shape(
|
|||
.map(|(depth, channel)| (channel.id, depth))
|
||||
.collect::<Vec<_>>()
|
||||
});
|
||||
pretty_assertions::assert_eq!(dbg!(actual), expected_channels);
|
||||
pretty_assertions::assert_eq!(actual, expected_channels);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue