Commit Graph

23 Commits

Author SHA1 Message Date
c2c91b8c58 refactor: Improve comment formatting in test_echo_thin_waist.py for clarity 2025-08-20 18:05:20 +05:30
7f6469d5d4 Merge remote-tracking branch 'acul71/feat/804-add-thin-waist-address' into feat/804-add-thin-waist-address 2025-08-19 19:56:20 +05:30
05b372b1eb Fix linting and type checking issues for Thin Waist feature 2025-08-19 01:11:48 +02:00
a2fcf33bc1 refactor: migrate echo example test to use Trio for process handling 2025-08-18 12:38:10 +05:30
59a898c8ce Add tests for echo example and address validation utilities
- Introduced `test_echo_thin_waist.py` to validate the echo example's output for Thin Waist lines.
- Added `test_address_validation.py` to cover functions for available interfaces, optimal binding addresses, and wildcard address expansion.
- Included parameterized tests and environment checks for IPv6 support.
2025-08-09 01:24:14 +05:30
eea065fb57 reorg test structure to match tox and CI jobs, drop bumpversion for bump-my-version and move config to pyproject.toml, fix docs building 2024-04-20 09:18:26 -06:00
94483714a3 run lint and fix errors, except mypy 2024-02-19 16:05:58 -07:00
13e8f496a7 Noise: add noise option in the factories and tests 2020-02-28 15:50:01 +08:00
6149aacc01 Fix examples 2019-12-01 17:55:07 +08: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
a27a817d50 Fix tests 2019-09-20 16:17:13 +08:00
7243eb9766 Fix different exception raised in test 2019-09-17 21:44:48 +08:00
bb0da41eda Remove cleanup
`cleanup` cancels all tasks in the loop, including the main one run by
`run_until_complete`
2019-09-10 18:01:16 +08:00
649a230776 Fix MplexStream.read 2019-09-06 17:26:40 +08:00
16a4fd33c1 PR feedbacks
- Move exceptions to exceptions.py
- Raise `UpgradeFailure` in upgrader
- Refine the try/catch for upgraders in swarm
2019-08-22 22:53:49 +08:00
c536aa3e07 flake8 2019-08-08 16:09:02 +08:00
0a5b4a88ca Fix flake8 for the existing code 2019-08-04 00:18:30 +08:00
c8005c8113 Run isort in repo 2019-08-03 17:50:14 +08:00
0ae9840928 Run black over repo 2019-07-31 15:00:12 -07:00
1886258fbf fix existing tests 2019-03-17 19:33:40 -04:00
82840b5e6c Stream rearchitecture (#126)
* Add generic protocol handler

* Add generic protocol handler to stream muxing pipeline

* Modify conn_handler to only deal with connections

* mplex accept stream architecture changes

* Add create generic protocol handler

* Fix minor bugs

* who would win 4 devs or one not

* Debugging

* rearch with handle_incoming infinite loop, seems to work, needs cleanup"

* passing linting, still needs cleanup

* fixing linting again; code still needs cleanup

* fixing tests; code still needs cleanup

* adding test cleanup and task cleanup, removing prints

* linting, and cleanup complete

* storing connections based on peer id

* remove dead code

* remove unnecessary peer_id
2019-02-24 20:58:23 -05:00
ce6ddb27a9 Migrate to new project structure. 2019-01-09 21:38:56 +03:00
97e554e265 make the chat example a runnable test
fixes #71
2018-12-21 09:03:20 +01:00