Skip to content

Commit

Permalink
Fix linter warnings for tests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Nov 16, 2023
1 parent 022c35d commit 04c5959
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aquadoggo/src/network/peers/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ impl NetworkBehaviour for Behaviour {
#[cfg(test)]
mod tests {
use futures::FutureExt;
#[allow(deprecated)]
use libp2p::swarm::{keep_alive, ConnectionId, Swarm};
use libp2p_swarm_test::SwarmExt;
use p2panda_rs::schema::SchemaId;
Expand Down Expand Up @@ -275,6 +276,7 @@ mod tests {
async fn incompatible_network_behaviour() {
// Create two swarms
let mut swarm_1 = Swarm::new_ephemeral(|_| PeersBehaviour::new());
#[allow(deprecated)]
let mut swarm_2 = Swarm::new_ephemeral(|_| keep_alive::Behaviour);

// Listen on swarm_1 and connect from swarm_2, this should establish a bi-directional connection.
Expand Down
2 changes: 1 addition & 1 deletion aquadoggo/src/test_utils/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Default for TestConfiguration {
let db_name = format!("dbmem{}", rand::random::<u32>());

Self {
/// SQLite database stored in memory.
// SQLite database stored in memory.
database_url: format!("sqlite://{db_name}?mode=memory&cache=private"),
}
}
Expand Down

0 comments on commit 04c5959

Please sign in to comment.