Skip to content

Commit

Permalink
add underscore to count_connections method in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mycognosist committed May 10, 2023
1 parent eb60adf commit c19adcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/actors/connection_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ mod test {
async fn test_count_connections() -> Result<()> {
let connection_manager = instantiate_new_connection_manager();

let active_connections = connection_manager.read().await.count_connections();
let active_connections = connection_manager.read().await._count_connections();
assert_eq!(active_connections, 0);

Ok(())
Expand Down Expand Up @@ -279,7 +279,7 @@ mod test {
assert_eq!(reinsert_result, false);

// Count the active connections.
let connections = connection_manager.read().await.count_connections();
let connections = connection_manager.read().await._count_connections();
assert_eq!(connections, 1);

// Remove a peer from the list of connected peers.
Expand All @@ -290,7 +290,7 @@ mod test {
assert_eq!(remove_result, true);

// Count the active connections.
let conns = connection_manager.read().await.count_connections();
let conns = connection_manager.read().await._count_connections();
assert_eq!(conns, 0);

Ok(())
Expand Down

0 comments on commit c19adcb

Please sign in to comment.