Skip to content

Commit

Permalink
test: introduce libp2p-swarm-test
Browse files Browse the repository at this point in the history
This patch-set introduces `libp2p-swarm-test`. It provides utilities for quick and safe bootstrapping of tests for `NetworkBehaviour`s. The main design features are:

- Everything has timeouts
- APIs don't get in your way
- Minimal boilerplate

Closes libp2p#2884.

Pull-Request: libp2p#2888.
  • Loading branch information
thomaseizinger authored Mar 8, 2023
1 parent bd1912b commit aff95a1
Show file tree
Hide file tree
Showing 3 changed files with 645 additions and 823 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ libp2p-noise = { path = "../../transports/noise" }
libp2p-swarm = { path = "../../swarm", features = ["async-std", "macros"] }
libp2p-tcp = { path = "../../transports/tcp", features = ["async-io"] }
libp2p-yamux = { path = "../../muxers/yamux" }
libp2p-swarm-test = { path = "../../swarm-test" }

# Passing arguments to the docsrs builder in order to properly document cfg's.
# More information: https://docs.rs/about/builds#cross-compiling
Expand Down
Loading

0 comments on commit aff95a1

Please sign in to comment.