Skip to content

Commit 82bc1bf

Browse files
committed
refactor: use recv_msg_trash() instead of recv_msg_opt()
1 parent 75bcf86 commit 82bc1bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,8 +1433,7 @@ pub(crate) async fn mark_as_verified(this: &TestContext, other: &TestContext) {
14331433
pub(crate) async fn sync(alice0: &TestContext, alice1: &TestContext) {
14341434
alice0.send_sync_msg().await.unwrap();
14351435
let sync_msg = alice0.pop_sent_sync_msg().await;
1436-
let no_msg = alice1.recv_msg_opt(&sync_msg).await;
1437-
assert!(no_msg.is_none());
1436+
alice1.recv_msg_trash(&sync_msg).await;
14381437
}
14391438

14401439
/// Pretty-print an event to stdout

0 commit comments

Comments
 (0)