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:
Rusty Russell
2022-04-01 14:43:33 +10:30
parent 5d8fc84675
commit 1b6f4e7026
3 changed files with 6 additions and 6 deletions

View File

@@ -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'],