diff --git a/test/itest_reconnect.py b/test/itest_reconnect.py index c373b46ba..0a69f7902 100644 --- a/test/itest_reconnect.py +++ b/test/itest_reconnect.py @@ -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...')