Commit Graph

243 Commits

Author SHA1 Message Date
fbdd52cfdc Go with immutable datatype in lieu of mutable datatype 2019-11-06 11:25:12 -08:00
c8a5f6f8d7 Run docformatter over changes 2019-11-05 17:50:11 -08:00
94984be4df Avoid hard-coding ports where it is not relevant for Kademlia tests 2019-11-05 17:50:11 -08:00
700209c50a Merge pull request #315 from ralexstokes/add-ping-protocol
Add `ping` protocol.
2019-11-06 10:14:39 +09:00
ded3792924 Merge pull request #331 from dmuhs/fix/docs-format
Add automatic docstring formatting
2019-10-28 09:39:52 -06:00
bafdd8512d Enforce pre-summary newline in docstrings 2019-10-24 20:10:45 +02:00
714126faf5 Update secio tests to new initiator flag 2019-10-24 19:30:57 +02:00
c0452c961b Update stream muxer conftest 2019-10-24 19:25:51 +02:00
d795a9b854 Add tests for ping protocol 2019-10-24 19:53:04 +09:00
1bf0c31d1f add basic test for default protocols 2019-10-24 17:36:34 +09:00
2af97240c5 Fix import formatting 2019-10-24 09:16:58 +02:00
eef505f2d9 Add automatic docstring formatter and apply 2019-10-24 08:41:10 +02:00
ac9feef26c Pull request feedback 2019-10-15 20:32:25 +02:00
d1d91e4091 Refactored for 'lint' testenv 2019-10-15 19:02:03 +02:00
8143563831 Added tests for 'RoutedHost' and modified 'FindPeer' 2019-10-15 01:01:16 +02:00
673ce40133 Add basic tests for ed25519 keys 2019-09-24 10:06:35 -07:00
da34b086d5 Merge branch 'master' into fix/change-notifee-and-add-tests-for-swarm-conn-and-mplex 2019-09-24 13:50:54 +08:00
006002f687 Move interop tests out of tests
It is moved to the top level package `tests_interop`, to avoid circular
dependency, with the dependency moved to `tox`.
2019-09-23 22:00:40 +08:00
95ae718e3d Raise ParseError in read_delim 2019-09-23 16:01:22 +08:00
92deae41dc Change SwarmConn.conn to muxed_conn 2019-09-23 15:46:50 +08:00
6f8394e4bd Merge branch 'master' into fix/change-notifee-and-add-tests-for-swarm-conn-and-mplex 2019-09-21 18:34:12 +08:00
e44c2145cc Merge branch 'master' into fix/detection-of-close 2019-09-21 18:05:54 +08:00
a27a817d50 Fix tests 2019-09-20 16:17:13 +08:00
89c127eff4 Merge branch 'master' into fix/refactor-mplex-swarm-host 2019-09-20 15:45:28 +08:00
313ae45b45 Add tests for MplexStream 2019-09-19 16:31:42 +08:00
02c55e5d14 Add tests for MplexConn 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
b8b5ac5e06 Add test for notifee disconnected 2019-09-19 16:31:41 +08:00
675c61ce3b Move test_notify from libp2p to network 2019-09-19 16:31:41 +08:00
5307c0506b Change IMuxedConn to INetConn in Notifee 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
2d8e02b7eb Add detection for disconnections in mplex 2019-09-19 15:55:26 +08:00
0c7afeebaf Fix test_security_multistream 2019-09-19 13:59:50 +08:00
7243eb9766 Fix different exception raised in test 2019-09-17 21:44:48 +08:00
df87f5adb9 Add tests against the daemon for close/reset 2019-09-10 18:01:16 +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
a45eb76421 Suppress all exceptions in clean up. 2019-09-10 18:01:16 +08:00
df312f3e57 Fix linting 2019-09-10 18:01:15 +08:00
0ab548aee5 Add the missing tests 2019-09-10 18:01:15 +08:00
be2c0f122a Fix close behavior 2019-09-10 18:01:14 +08:00
6c1f77dc1a Fix: Change the event.close to event.set
And add missing parts.
2019-09-06 21:35:15 +08:00
a754e7dbbe Add the missing tests.constants 2019-09-06 17:59:39 +08:00
649a230776 Fix MplexStream.read 2019-09-06 17:26:40 +08:00
6d97702da7 Merge pull request #277 from ralexstokes/add-io-abstractions
Introduces IO abstractions and classes for `msgio` IO
2019-09-04 19:11:50 +02:00
1f3c9af45b Add the missing is_proc_running=True 2019-09-04 22:19:11 +08:00
0e3d4508d6 PR feedback
- Use `Sequence` instead of `List`
- Add note
- Remove redundant words in docstring
2019-09-04 20:52:18 +08:00
db0da8083a Do p2pd.close if not all of them succeed 2019-09-04 20:52:17 +08:00