mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
pytest: don't hand a string for an integer value.
lightningd is happy, but our schema won't be. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -186,7 +186,7 @@ def test_connection_moved(node_factory, executor):
|
||||
log = l1.daemon.wait_for_log('listening for connections')
|
||||
match = re.search(r'on port (\d*)', log)
|
||||
assert match and len(match.groups()) == 1
|
||||
hang_port = match.groups()[0]
|
||||
hang_port = int(match.groups()[0])
|
||||
|
||||
# Attempt connection
|
||||
fut_hang = executor.submit(l1.rpc.connect, l2.info['id'],
|
||||
|
||||
Reference in New Issue
Block a user