Bitmessage / PyBitmessage

Reference client for Bitmessage: a P2P encrypted decentralised communication protocol:
https://bitmessage.org/wiki/Main_Page
Other
2.81k stars 578 forks source link

Move most of the code testing UDP from core tests to test_network #2169

Closed PeterSurda closed 5 months ago

PeterSurda commented 5 months ago

Hi!

I moved the code causing failures like this into the TestNetwork test case and slightly improved the logic.

FAIL: test_udp (tests.core.TestCore)
check default udp setting and presence of Announcer thread
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/var/lib/buildbot/workers/default/multibuild_child/build/src/tests/core.py", line 331, in test_udp
 self.fail('No self in discovered peers')
AssertionError: No self in discovered peers

Even if it fail there, what I didn't observed so far, the py27 tox environment will be fully executed and coverage won't be decreased to 13%.