Skip to content

Commit

Permalink
Merge pull request #1874 from subspace/connected-peers-tests
Browse files Browse the repository at this point in the history
Add tests for connected-peers protocol (DSN).
  • Loading branch information
nazar-pc authored Aug 29, 2023
2 parents 80df812 + adb5500 commit 70bc957
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 0 deletions.
160 changes: 160 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/subspace-networking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ features = [
"metrics",
"noise",
"ping",
"plaintext",
"request-response",
"serde",
"tcp",
Expand All @@ -82,3 +83,4 @@ version = "0.2.1"

[dev-dependencies]
rand = "0.8.5"
libp2p-swarm-test = "0.2.0"
2 changes: 2 additions & 0 deletions crates/subspace-networking/src/protocols/connected_peers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
//! a single connection for each peer. Multiple protocol instances could be instantiated.

mod handler;
#[cfg(test)]
mod tests;

use crate::utils::PeerAddress;
use futures::FutureExt;
Expand Down
Loading

0 comments on commit 70bc957

Please sign in to comment.