Skip to content

Commit

Permalink
[test] wait for disconnect before asserting len(peerinfo)
Browse files Browse the repository at this point in the history
-Need to wait for disconnect to complete because number
of connected peers is tested later
  • Loading branch information
glozow committed Jun 15, 2020
1 parent 629604f commit 8386ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/feature_maxuploadtarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def run_test(self):

self.log.info("Peer 2 able to download old block")

self.nodes[0].disconnect_p2ps()
self.nodes[0].disconnect_p2ps(wait_for_disconnect=True)

self.log.info("Restarting node 0 with noban permission and 1MB maxuploadtarget")
self.restart_node(0, ["[email protected]", "-maxuploadtarget=1"])
Expand Down

0 comments on commit 8386ad5

Please sign in to comment.