Merge #11078: [tests] Make p2p-leaktests.py more robust
commit42973f834445d7735738bdba8847812ba3c34d95
authorMarcoFalke <falke.marco@gmail.com>
Wed, 13 Sep 2017 16:54:09 +0000 (13 18:54 +0200)
committerMarcoFalke <falke.marco@gmail.com>
Wed, 13 Sep 2017 16:54:50 +0000 (13 18:54 +0200)
tree6df415672636d349cffa7cb6d167f323683b671c
parent8df48b36ed3201d938b9974ecbee455d7dc2fb84
parent0063d2c3dce9d9c1678197d2c65ee878793d1ef9
Merge #11078: [tests] Make p2p-leaktests.py more robust

0063d2c3d [tests] Make p2p-leaktests.py more robust (John Newbery)

Pull request description:

  There has been an example of p2p-leaktests.py failing on travis in the new service bits test (introduced in #11001 . It appeared to me that the previous p2p connections had not been fully disconnected before attempting to add new p2p connections.

  I've added a sleep and restarted the NetworkThread, but I don't know whether this will fix the problem, since I'm unable to reproduce the failure locally.

  @MarcoFalke - not sure what you want to do here? I don't think this change could make things any worse.

Tree-SHA512: f5427c26267185a903c9b75bb3925bf153b8afce70c8e493bf8f585f57d809d20643b4ee69081300b211d22e960242aecc3d719f4ddd230aa08fdc5484b55055
test/functional/p2p-leaktests.py
test/functional/test_framework/mininode.py