cln/tests
Rusty Russell 102e22347d pytest: fix flake in test_wss_proxy
```
>       wss = BindWebSecureSocket('localhost', wss_port)

tests/test_connection.py:4584: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_connection.py:4570: in __init__
    self.ws.connect("wss://" + hostname + ":" + str(port))
../../../.cache/pypoetry/virtualenvs/cln-meta-project-AqJ9wMix-py3.8/lib/python3.8/site-packages/websocket/_core.py:256: in connect
    self.sock, addrs = connect(
../../../.cache/pypoetry/virtualenvs/cln-meta-project-AqJ9wMix-py3.8/lib/python3.8/site-packages/websocket/_http.py:145: in connect
    sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
../../../.cache/pypoetry/virtualenvs/cln-meta-project-AqJ9wMix-py3.8/lib/python3.8/site-packages/websocket/_http.py:232: in _open_socket
    raise err
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

addrinfo_list = [(<AddressFamily.AF_INET6: 10>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('::1', 45521, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 45521))]
sockopt = [], timeout = None

    def _open_socket(addrinfo_list, sockopt, timeout):
        err = None
        for addrinfo in addrinfo_list:
            family, socktype, proto = addrinfo[:3]
            sock = socket.socket(family, socktype, proto)
            sock.settimeout(timeout)
            for opts in DEFAULT_SOCKET_OPTION:
                sock.setsockopt(*opts)
            for opts in sockopt:
                sock.setsockopt(*opts)
    
            address = addrinfo[4]
            err = None
            while not err:
                try:
>                   sock.connect(address)
E                   ConnectionRefusedError: [Errno 111] Connection refused
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-11-17 14:09:10 +10:30
..
data tests/data: add compressd canned gossip from mainnet. 2024-10-04 08:47:53 +09:30
fuzz fuzz: fix up compilation with hsmtool change. 2024-11-13 13:24:06 +10:30
plugins build: fix race where channeld_fakenet doesn't depend on external modules. 2024-11-17 14:09:10 +10:30
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
autogenerate-rpc-examples.py bkpr: add examples for new edit description RPC calls 2024-11-12 09:46:09 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py pytest: use --developer instead of environment variable. 2023-09-21 20:08:24 +09:30
fixtures.py pytest: use --developer instead of environment variable. 2023-09-21 20:08:24 +09:30
rkls_github_canned_server.py pytest: add blackbox tests for reckless 2023-04-09 12:41:11 +09:30
test_askrene.py pytest: reduce askrene tests again for CI. 2024-11-17 14:09:10 +10:30
test_bookkeeper.py bkpr: add tests for new edit description RPC calls 2024-11-12 09:46:09 +10:30
test_cln_rs.py tests: adjust cln-grpc tests for new default start 2024-11-12 09:43:54 +10:30
test_clnrest.py tests: adjust cln-grpc tests for new default start 2024-11-12 09:43:54 +10:30
test_closing.py pytest: fix test_onchain_unwatch under valgrind. 2024-11-17 14:09:10 +10:30
test_connection.py pytest: fix flake in test_wss_proxy 2024-11-17 14:09:10 +10:30
test_db.py pytest: clean up tests/test_db.py::test_last_tx_psbt_upgrade 2024-05-08 21:54:50 -05:00
test_gossip.py pytest: don't assume gossip order in test_gossip_query_channel_range 2024-11-17 14:09:10 +10:30
test_invoices.py autoclean: remove autocleaninvoice command. 2024-06-20 16:14:38 +09:30
test_misc.py addpsbtinput: New RPC command to add funds to a psbt 2024-11-12 06:42:52 +10:30
test_mkfunding.py pytest: add tests for devtools/mkfunding 2023-01-09 14:50:30 -06:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py config: actually deprecate --experimental-anchors. 2024-07-09 15:09:29 +02:00
test_pay.py lightningd: add option dev-strict-forwarding 2024-11-12 10:44:10 +01:00
test_plugin.py pytest: fix spurious error in test_important_plugin 2024-11-17 14:09:10 +10:30
test_reckless.py pytest: disable broken test 2024-11-17 14:09:10 +10:30
test_renepay.py renepay: add test for description interface 2024-11-06 09:59:27 +01:00
test_runes.py commando: update removal version for rpcs 2024-06-18 14:06:06 +09:30
test_splice.py splice: Add test of “splice” script command 2024-11-12 06:42:52 +10:30
test_splicing.py splice: Allow splice_update to return signatures 2024-11-12 06:42:52 +10:30
test_splicing_disconnect.py splice: Allow splice_update to return signatures 2024-11-12 06:42:52 +10:30
test_splicing_insane.py splice: Allow splice_update to return signatures 2024-11-12 06:42:52 +10:30
test_wallet.py hsmtool.c: extend generatehsm to allow command-line args. 2024-11-15 12:48:44 +10:30
test_xpay.py channeld_fakenet: fake channeld to simulate network given a gossmap_store. 2024-11-06 21:17:36 +10:30
utils.py pytest: generalize serialize_payload_tlv/serialize_payload_final_tlv 2024-10-27 13:57:50 +11:00
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30