core-lightning/tests
Rusty Russell e684f87ef7 pytest: fix spurious failure in test_local_basepoints_cache.
Change the address in the canned db: it seems we won the lottery and
l1 connected, and got an error!

```
 E           ValueError:
 E           Node errors:
 E            - lightningd-1: had warning messages
 E           Global errors:
...
 lightningd-1: 2021-04-07T02:44:53.579Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_CHANNEL_REESTABLISH
 lightningd-1: 2021-04-07T02:44:53.579Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_GOSSIP_TIMESTAMP_FILTER
 lightningd-1: 2021-04-07T02:44:53.580Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_ERROR
 lightningd-1: 2021-04-07T02:44:53.580Z INFO    022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Peer transient failure in CHANNELD_NORMAL: channeld WARNING: error channel fdeb1ea12e02aa043f66ba581e969a1882d21142b19429995c6733bb71070bb6: Multiple channels unsupported
 lightningd-1: 2021-04-07T02:44:53.580Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Will try reconnect in 60 seconds
```

So I changed the port in the db to "1" which will never succeed:

```
sqlite> .dump peers
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE peers (  id INTEGER, node_id BLOB UNIQUE, address TEXT, PRIMARY KEY (id));
INSERT INTO peers VALUES(1,X'022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59','127.0.0.1:38723');
COMMIT;
sqlite> UPDATE peers SET address="127.0.0.1:1"
   ...> ;
sqlite> .dump peers
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE peers (  id INTEGER, node_id BLOB UNIQUE, address TEXT, PRIMARY KEY (id));
INSERT INTO peers VALUES(1,X'022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59','127.0.0.1:1');
COMMIT;
sqlite>
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-04-12 23:03:47 +02:00
..
data pytest: fix spurious failure in test_local_basepoints_cache. 2021-04-12 23:03:47 +02:00
fuzz check-includes: allow redundant "config.h" 2021-02-04 12:02:36 +10:30
plugins df: update the openchannel2 parameter 'accepter' -> 'our' 2021-03-12 14:00:19 +10:30
vectors pytest: Add tests for the sphinx onion generation and processing 2020-03-12 10:25:01 +10:30
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
conftest.py pytest: silence pytest warnings about unregistered 'slow_test' marker 2020-11-10 16:17:04 -06:00
db.py pytest: Have the DB provider search for the postgres binary 2019-09-22 02:03:43 +00:00
fixtures.py pytest: Really only check DB statements if the env-var is "1" 2021-01-04 11:25:50 +01:00
test_closing.py pytest: fix now-obsolete use of fundchannel_complete via txid. 2021-03-16 14:21:42 +10:30
test_connection.py dual-funding: convert to runtime flag, --experimental-dual-fund 2021-03-25 20:05:11 +10:30
test_db.py wallet: Load local basepoints from the database alongside the hsmd 2021-03-09 14:58:29 +10:30
test_gossip.py connect: return address we actually connected to. 2021-03-17 08:38:08 +10:30
test_invoices.py invoice: add ctlv option. 2021-01-08 10:45:56 +01:00
test_misc.py newaddr: don't include "address" field. 2021-04-07 14:34:39 +09:30
test_onion.py pytest: Actually make sure that the direcory exists 2020-03-24 09:52:33 +10:30
test_opening.py df-tests: update to take 'no channel_id' into account; use exp-df flag 2021-03-25 20:05:11 +10:30
test_pay.py keysend: Add error when trying to send to self 2021-03-19 10:18:42 +10:30
test_plugin.py pytest: test rpc_command hook chain 2021-03-03 09:18:53 +10:30
test_wallet.py fund/utxopsbt: flag 'excess_as_change' to add a change output for excess 2021-02-04 13:25:34 -06:00
utils.py common: support opt_shutdown_anysegwit checks (EXPERIMENTAL_FEATURES). 2021-03-02 14:42:34 +10:30