refactor: use recv_msg_trash() instead of recv_msg_opt()

This commit is contained in:
link2xt
2025-09-09 04:43:20 +00:00
committed by l
parent 75bcf8660b
commit 82bc1bf0b1

View File

@@ -1433,8 +1433,7 @@ pub(crate) async fn mark_as_verified(this: &TestContext, other: &TestContext) {
pub(crate) async fn sync(alice0: &TestContext, alice1: &TestContext) {
alice0.send_sync_msg().await.unwrap();
let sync_msg = alice0.pop_sent_sync_msg().await;
let no_msg = alice1.recv_msg_opt(&sync_msg).await;
assert!(no_msg.is_none());
alice1.recv_msg_trash(&sync_msg).await;
}
/// Pretty-print an event to stdout