core-lightning/tests
Rusty Russell 12fbb23322 pytest: fix flake in test_channel_lease_unilat_closes
We actually were waiting for l3 to disconnect, not l2.

But in general we should be looking for status rather than grovelling
in the logs where possible, so I changed all those.

```
2021-08-17T04:40:34.9015538Z         # l2 leases a channel from l3
2021-08-17T04:40:34.9016520Z         l2.rpc.connect(l3.info['id'], 'localhost', l3.port)
2021-08-17T04:40:34.9017570Z         rates = l2.rpc.dev_queryrates(l3.info['id'], amount, amount)
2021-08-17T04:40:34.9018724Z         l3.daemon.wait_for_log('disconnect')
2021-08-17T04:40:34.9019851Z         l2.rpc.connect(l3.info['id'], 'localhost', l3.port)
2021-08-17T04:40:34.9021467Z         l2.rpc.fundchannel(l3.info['id'], amount, request_amt=amount,
2021-08-17T04:40:34.9022865Z                            feerate='{}perkw'.format(feerate), minconf=0,
2021-08-17T04:40:34.9024000Z >                          compact_lease=rates['compact_lease'])
...
2021-08-17T04:40:34.9103422Z >           raise RpcError(method, payload, resp['error'])
2021-08-17T04:40:34.9106829Z E           pyln.client.lightning.RpcError: RPC call failed: method: fundchannel, payload: {'id': '035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d', 'amount': 500000, 'feerate': '2000perkw', 'announce': True, 'minconf': 0, 'request_amt': 500000, 'compact_lease': '029a00640064000000644c4b40'}, error: {'code': 400, 'message': 'Unable to connect, no address known for peer', 'data': {'id': '035d2b1192dfba134e10e540875d366ebc8bc353d5aa766b80c090b39c3a5d885d', 'method': 'connect'}}
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-08-18 22:11:47 -05:00
..
data inflights: save the whole psbt to the database 2021-05-24 12:17:48 +09:30
fuzz liquidity-ads: persist channel blockheight states to disk 2021-07-20 13:28:38 -04:00
plugins pyln-client: document and test that init can self-disable. 2021-08-14 12:52:19 +09:30
vectors pytest: Add tests for the sphinx onion generation and processing 2020-03-12 10:25:01 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py tests: add marker for v1/v2 channel opens 2021-05-12 11:25:41 +09:30
db.py pytest: Have the DB provider search for the postgres binary 2019-09-22 02:03:43 +00:00
fixtures.py pytest: add schema support for JSON responses. 2021-05-27 20:28:49 +09:30
test_closing.py pytest: fix flake in test_channel_lease_unilat_closes 2021-08-18 22:11:47 -05:00
test_connection.py funder: default to only funding leases 2021-08-09 07:11:05 +09:30
test_db.py inflights: save the whole psbt to the database 2021-05-24 12:17:48 +09:30
test_gossip.py tests: add test for setting/updating node announce 2021-07-20 13:28:38 -04:00
test_invoices.py listinvoices: support listing by local offer_id. 2021-07-03 12:13:45 +09:30
test_misc.py chaintopology: tell gossipd that channels no longer exist on reorg. 2021-08-14 12:07:38 +09:30
test_onion.py pytest: Actually make sure that the direcory exists 2020-03-24 09:52:33 +10:30
test_opening.py tests: check that we don't re-up the leased funds when we RBF 2021-08-09 07:11:05 +09:30
test_pay.py offers: make decode command available even without experimental-offers. 2021-08-02 13:23:31 -04:00
test_plugin.py pyln-client: document and test that init can self-disable. 2021-08-14 12:52:19 +09:30
test_wallet.py listtransactions: don't create a msat field called "satoshis". 2021-06-25 09:49:33 +09:30
utils.py tests: promote method to utility file 2021-08-09 07:11:05 +09:30