Commit Graph

16 Commits

Author SHA1 Message Date
df72979606 moved factories to tests 2025-03-24 07:59:35 -06:00
bcd7890124 Move test utilities to tools (#356)
* move test factories to libp2p/tools

* remove unused inits

* move pubsub test utils to tools

* cleanup test_interop

* fix typing libp2p/tools/utils

* add typing to pubsub utils

* fix factories typing

* fix typing for floodsub_integration_test_settings

* fix rest of the typing

* fix isort
2019-11-21 11:47:54 +08:00
30dee28ef2 add asynccontextmanager utility for a pair of connected hosts 2019-11-07 20:59:01 -08:00
10dd997805 Reorganize factories 2019-11-06 12:11:09 -08:00
a07c3b0fb0 modify factories to fix tests 2019-11-06 12:11:01 -08:00
92deae41dc Change SwarmConn.conn to muxed_conn 2019-09-23 15:46:50 +08:00
313ae45b45 Add tests for MplexStream 2019-09-19 16:31:42 +08:00
a9ad37bc6f Add mplex tests and fix error in SwarmConn.close 2019-09-19 16:31:41 +08:00
d61327f5f9 Add tests for SwarmConn 2019-09-19 16:31:41 +08:00
0356380996 Add tests for swarm, and debug
Fix `swarm_pair_factory`
2019-09-19 16:31:40 +08:00
276ac4d8ab Add initial test for Swarm.close_peer 2019-09-19 16:31:13 +08:00
e7304538da Add test for Swarm.close_peer 2019-09-19 16:31:12 +08:00
df312f3e57 Fix linting 2019-09-10 18:01:15 +08:00
be2c0f122a Fix close behavior 2019-09-10 18:01:14 +08:00
b955c0fa02 Explicitly import ID, Transport from secio 2019-08-31 22:38:46 +08:00
c61a06706a Refactor interop tests and factories
- Add `close` and `disconnect` in `Host`
- Add `close` and `close_peer` in `Network`
- Change `IListener.close` to async, to await for server's closing
- Add factories for security transports, and modify `HostFactory`
2019-08-29 21:38:06 +08:00