Skip to content

Commit

Permalink
squash this
Browse files Browse the repository at this point in the history
  • Loading branch information
Varunram committed Dec 5, 2018
1 parent 034008f commit e4afbfa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/itest_reconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,17 @@ def inbound(env):
print('Restarting...')
lit1.start()
lit1.resync()
time.sleep(5)
print('Connecting to node 2 (inbound)...')
lit2.connect_to_peer(lit1)
try:
lit2.connect_to_peer(lit1)
except:
print("Failed to connect to peer1, trying again")
time.sleep(5)
lit2.connect_to_peer(lit1)
print("SESAD: ", lit1.get_peer_id(lit2))
lit1.connect_to_peer(lit2)
print("This works?")

l2p2 = lit1.get_peer_id(lit2)

print('Checking IDs match...')
Expand Down

0 comments on commit e4afbfa

Please sign in to comment.