mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-12-27 00:35:18 +00:00
fix ut
This commit is contained in:
parent
8ca6585bd0
commit
922ffbe0e6
@ -1230,10 +1230,7 @@ mod tests {
|
|||||||
|
|
||||||
assert_eq!(handler.peers.read().await.size(), 1);
|
assert_eq!(handler.peers.read().await.size(), 1);
|
||||||
ctx.assert_status_request(alice);
|
ctx.assert_status_request(alice);
|
||||||
assert!(matches!(
|
assert!(matches!(ctx.sync_recv.try_recv(), Err(TryRecvError::Empty)));
|
||||||
ctx.sync_recv.try_recv(),
|
|
||||||
Ok(Notification(SyncMessage::PeerConnected {peer_id})) if peer_id == alice
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
Loading…
Reference in New Issue
Block a user