Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for connected-peers protocol (DSN). #1874

Merged
merged 4 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading