This commit is contained in:
boqiu 2024-11-22 17:28:18 +08:00
parent 8ca6585bd0
commit 922ffbe0e6

View File

@ -1230,10 +1230,7 @@ mod tests {
assert_eq!(handler.peers.read().await.size(), 1);
ctx.assert_status_request(alice);
assert!(matches!(
ctx.sync_recv.try_recv(),
Ok(Notification(SyncMessage::PeerConnected {peer_id})) if peer_id == alice
));
assert!(matches!(ctx.sync_recv.try_recv(), Err(TryRecvError::Empty)));
}
#[tokio::test]