Skip to content

Commit

Permalink
GH-3 Make test more robust by checking that node has received a hands…
Browse files Browse the repository at this point in the history
…hake
  • Loading branch information
heifner committed Apr 11, 2024
1 parent d5cef78 commit da0106b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/auto_bp_peering_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def neighbors_in_schedule(name, schedule):
for conn in connections["payload"]:
peer_addr = conn["peer"]
if len(peer_addr) == 0:
if len(conn["last_handshake"]["p2p_address"]) == 0:
continue
peer_addr = conn["last_handshake"]["p2p_address"].split()[0]
if peer_names[peer_addr] != "bios":
peers.append(peer_names[peer_addr])
Expand Down

0 comments on commit da0106b

Please sign in to comment.