Fix most tests for new chat changes

This commit is contained in:
Mikayla 2023-10-03 20:47:54 -07:00
parent 3bc7024f8b
commit db8096ccdc
No known key found for this signature in database
4 changed files with 36 additions and 12 deletions

View file

@ -350,7 +350,7 @@ async fn test_channel_buffers_last_operations(db: &Database) {
.await
.unwrap();
assert_eq!(
pretty_assertions::assert_eq!(
buffer_changes,
[
rpc::proto::UnseenChannelBufferChange {
@ -361,7 +361,11 @@ async fn test_channel_buffers_last_operations(db: &Database) {
rpc::proto::UnseenChannelBufferChange {
channel_id: buffers[1].channel_id.to_proto(),
epoch: 1,
version: serialize_version(&text_buffers[1].version()),
version: serialize_version(&text_buffers[1].version())
.into_iter()
.filter(|vector| vector.replica_id
== buffer_changes[1].version.first().unwrap().replica_id)
.collect::<Vec<_>>(),
},
rpc::proto::UnseenChannelBufferChange {
channel_id: buffers[2].channel_id.to_proto(),