Skip to content

Commit

Permalink
tests: Add debug print
Browse files Browse the repository at this point in the history
Check what list_peers() returns

Signed-off-by: Peter Neuroth <[email protected]>
  • Loading branch information
nepet committed May 19, 2024
1 parent 1fc430e commit d35a6f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libs/gl-testing/tests/test_gl_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,15 @@ def test_configure_close_to_addr(node_factory, clients, bitcoind):
gl1.configure(close_to_addr)

l2.rpc.fundchannel(c.node_id.hex(), 'all')
bitcoind.generate_block(1, wait_for_mempool=1)
bitcoind.generate_block(6, wait_for_mempool=1)

def chan_is_normal():
peers = gl1.list_peers()
print(f"got peers: {peers}")
return peers.channels[0].state == 2

wait_for(lambda:
gl1.list_peer_channels().channels[0].state == 2
chan_is_normal()
)

assert gl1.list_peers().peers[0].channels[0].close_to_addr == close_to_addr

0 comments on commit d35a6f5

Please sign in to comment.