This commit is contained in:
Mikayla 2023-09-15 11:19:40 -07:00
parent 16707d16f6
commit f9fff3a7b2
No known key found for this signature in database
8 changed files with 166 additions and 148 deletions

View file

@ -342,7 +342,12 @@ async fn test_channel_buffer_disconnect(
let client_b = server.create_client(cx_b, "user_b").await;
let channel_id = server
.make_channel("the-channel", None, (&client_a, cx_a), &mut [(&client_b, cx_b)])
.make_channel(
"the-channel",
None,
(&client_a, cx_a),
&mut [(&client_b, cx_b)],
)
.await;
let channel_buffer_a = client_a
@ -412,7 +417,12 @@ async fn test_rejoin_channel_buffer(
let client_b = server.create_client(cx_b, "user_b").await;
let channel_id = server
.make_channel("the-channel", None, (&client_a, cx_a), &mut [(&client_b, cx_b)])
.make_channel(
"the-channel",
None,
(&client_a, cx_a),
&mut [(&client_b, cx_b)],
)
.await;
let channel_buffer_a = client_a

View file

@ -1021,13 +1021,7 @@ async fn test_channel_moving(
// Current shape for C:
// - ep
assert_channels_list_shape(
client_c.channel_store(),
cx_c,
&[
(channel_ep_id, 0),
],
);
assert_channels_list_shape(client_c.channel_store(), cx_c, &[(channel_ep_id, 0)]);
client_b
.channel_store()

View file

@ -592,16 +592,10 @@ impl TestClient {
) {
let (other_client, other_cx) = user;
self
.app_state
self.app_state
.channel_store
.update(cx_self, |channel_store, cx| {
channel_store.invite_member(
channel,
other_client.user_id().unwrap(),
true,
cx,
)
channel_store.invite_member(channel, other_client.user_id().unwrap(), true, cx)
})
.await
.unwrap();
@ -616,7 +610,6 @@ impl TestClient {
})
.await
.unwrap();
}
}