Skip to content

Commit

Permalink
fix cargo check
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Jul 22, 2024
1 parent 722c272 commit 94f8b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comms/core/src/connectivity/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ async fn pool_management() {

let events = collect_try_recv!(event_stream, take = 9, timeout = Duration::from_secs(10));
for event in events {
unpack_enum!(ConnectivityEvent::PeerDisconnected(..) = event);
unpack_enum!(ConnectivityEvent::PeerDisconnected(_a, _b) = event);
}

assert_eq!(important_connection.handle_count(), 2);
Expand All @@ -453,7 +453,7 @@ async fn pool_management() {
drop(important_connection);

let mut events = collect_try_recv!(event_stream, take = 1, timeout = Duration::from_secs(10));
unpack_enum!(ConnectivityEvent::PeerDisconnected(..) = events.remove(0));
unpack_enum!(ConnectivityEvent::PeerDisconnected(_a, _b) = events.remove(0));
let conns = connectivity.get_active_connections().await.unwrap();
assert!(conns.is_empty());
}

0 comments on commit 94f8b88

Please sign in to comment.