MCPcopy Create free account
hub / github.com/chatmail/core / sync

Function sync

src/test_utils.rs:1675–1679  ·  view source on GitHub ↗

Pops a sync message from alice0 and receives it on alice1. Should be used after an action on alice0's side that implies sending a sync message.

(alice0: &TestContext, alice1: &TestContext)

Source from the content-addressed store, hash-verified

1673/// Pops a sync message from alice0 and receives it on alice1. Should be used after an action on
1674/// alice0's side that implies sending a sync message.
1675pub(crate) async fn sync(alice0: &TestContext, alice1: &TestContext) {
1676 alice0.send_sync_msg().await.unwrap();
1677 let sync_msg = alice0.pop_sent_msg().await;
1678 alice1.recv_msg_trash(&sync_msg).await;
1679}
1680
1681/// Pretty-print an event to stdout
1682///

Callers

nothing calls this directly

Calls 3

send_sync_msgMethod · 0.80
pop_sent_msgMethod · 0.80
recv_msg_trashMethod · 0.80

Tested by

no test coverage detected