Rusty Russell
2a80400a0f
pytest: fix test_connection.py::test_funding_close_upfront fake
Breaks when there are no peers:
```
> _fundchannel(l1, l2, amt_normal, None)
tests/test_connection.py:1564:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_connection.py:1535: in _fundchannel
wait_for(lambda: not has_normal_channels(l2, l1))
contrib/pyln-testing/pyln/testing/utils.py:88: in wait_for
while not success():
tests/test_connection.py:1535: in <lambda>
wait_for(lambda: not has_normal_channels(l2, l1))
tests/test_connection.py:1527: in has_normal_channels
for c in only_one(l1.rpc.listpeers(l2.info['id'])['peers'])['channels']])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
arr = []
def only_one(arr):
"""Many JSON RPC calls return an array; often we only expect a single entry
"""
> assert len(arr) == 1
E AssertionError
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-03-23 13:20:12 +10:30
..
2021-05-24 12:17:48 +09:30
2021-12-06 10:05:39 +10:30
2022-02-22 05:45:47 +10:30
2022-03-18 09:20:11 +10:30
2021-07-14 14:38:00 -05:00
2021-05-12 11:25:41 +09:30
2021-08-26 12:44:02 +09:30
2022-03-10 10:21:41 +10:30
2022-03-10 10:21:41 +10:30
2022-03-23 13:20:12 +10:30
2022-03-23 13:20:12 +10:30
2021-11-17 12:10:07 +10:30
2022-03-22 18:45:41 +10:30
2022-02-08 11:15:52 +10:30
2022-03-23 13:20:12 +10:30
2022-03-18 09:20:11 +10:30
2022-03-01 09:38:40 +10:30
2022-03-23 13:20:12 +10:30
2022-03-23 13:20:12 +10:30
2022-02-20 19:29:44 +10:30
2022-03-18 09:20:11 +10:30
2022-03-10 10:21:41 +10:30