lnd/lntest/itest
Oliver Gugger 4b7452a35e
lnrpc+itest: fix write deadline issue with WS ping
Fixes #5680.
To make sure we're always reading from the WebSocket connection, we need
to always have an ongoing (but blocking) conn.ReadMessage() call going
on. To achieve this, we do the read in a separate goroutine and write to
a buffered channel. That way we can always read the next message while
the current one is being forwarded. This allows incoming ping messages
to be received and processed which then leads to the deadlines to be
extended correctly.
2021-09-20 12:21:03 +02:00
..
assertions.go itest: remove the method waitForChannelUpdate 2021-09-17 07:50:43 +08:00
lnd_amp_test.go lntest/itest: fix SendPaymentAMP test 2021-09-14 18:53:17 +02:00
lnd_channel_backup_test.go lntest: refactor handle update open channel 2021-09-17 07:50:42 +08:00
lnd_channel_balance_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_channel_force_close.go itest: add more verbose log and print node state 2021-09-17 07:50:42 +08:00
lnd_channel_graph_test.go itest: remove the method waitForChannelUpdate 2021-09-17 07:50:43 +08:00
lnd_channel_policy_test.go itest: remove the method waitForChannelUpdate 2021-09-17 07:50:43 +08:00
lnd_etcd_failover_test.go etcd: enable optional log file for embedded etcd log output 2021-09-10 14:40:54 +02:00
lnd_forward_interceptor_test.go itest: fix inheritance when creating timeout ctxt 2021-08-24 12:28:40 +08:00
lnd_funding_test.go itest: add more verbose log and print node state 2021-09-17 07:50:42 +08:00
lnd_hold_invoice_force_test.go itest: manage context timeout in utils.go 2021-08-24 12:28:40 +08:00
lnd_hold_persistence_test.go itest: fix inheritance when creating timeout ctxt 2021-08-24 12:28:40 +08:00
lnd_macaroons_test.go itest: Test new RPC call for checking macaroon permissions 2021-09-14 16:27:02 -05:00
lnd_max_channel_size_test.go itest: manage context timeout inside network harness 2021-08-24 12:28:35 +08:00
lnd_max_htlcs_test.go itest: fix context leak in openChannelAndAssert 2021-08-24 11:06:43 +08:00
lnd_misc_test.go itest: move tests by their category 2021-09-17 07:50:43 +08:00
lnd_mpp_test.go itest: manage context inside EnsureConnected 2021-08-24 11:06:44 +08:00
lnd_multi-hop-error-propagation_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_multi-hop-payments_test.go itest: remove the method waitForChannelUpdate 2021-09-17 07:50:43 +08:00
lnd_multi-hop_htlc_aggregation_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_multi-hop_htlc_local_chain_claim_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_multi-hop_htlc_local_timeout_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_multi-hop_htlc_receiver_chain_claim_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_multi-hop_htlc_remote_chain_claim_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_multi-hop_local_force_close_on_chain_htlc_timeout_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_multi-hop_remote_force_close_on_chain_htlc_timeout_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_multi-hop_test.go itest: add more verbose log and print node state 2021-09-17 07:50:42 +08:00
lnd_network_test.go itest: fix inheritance when creating timeout ctxt 2021-08-24 12:28:40 +08:00
lnd_no_etcd_dummy_failover_test.go itest: basic failover itest when using leader election on etcd 2021-05-04 17:33:12 +02:00
lnd_onchain_test.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00
lnd_open_channel_test.go itest: manage context timeout in utils.go 2021-08-24 12:28:40 +08:00
lnd_payment_test.go itest: fix inheritance when creating timeout ctxt 2021-08-24 12:28:40 +08:00
lnd_psbt_test.go itest: manage context timeout inside completePaymentRequests 2021-08-24 12:28:39 +08:00
lnd_recovery_test.go Merge pull request #4717 from guggero/xprv-wallet-init 2021-08-24 13:01:41 +02:00
lnd_rest_api_test.go lnrpc+itest: fix write deadline issue with WS ping 2021-09-20 12:21:03 +02:00
lnd_revocation_test.go itest: put node.CloseChannel inside wait 2021-09-17 07:50:44 +08:00
lnd_routing_test.go itest: remove the method waitForChannelUpdate 2021-09-17 07:50:43 +08:00
lnd_send_multi_path_payment_test.go itest: manage context inside assertions - I 2021-08-24 11:17:20 +08:00
lnd_signer_test.go lntest: allow the main test files to be buildable w/o the rpctest build tag 2020-09-21 21:16:31 +02:00
lnd_single_hop_invoice_test.go itest: fix inheritance when creating timeout ctxt 2021-08-24 12:28:40 +08:00
lnd_switch_test.go itest: manage context timeout inside completePaymentRequests 2021-08-24 12:28:39 +08:00
lnd_test.go itest: add more verbose log and print node state 2021-09-17 07:50:42 +08:00
lnd_test_list_off_test.go itest: split tests into dynamic tranches 2020-11-04 11:03:29 +01:00
lnd_test_list_on_test.go itest: add batch funding test 2021-09-03 18:39:45 +02:00
lnd_wallet_import_test.go itest: manage context timeout inside completePaymentRequests 2021-08-24 12:28:39 +08:00
lnd_wumbo_channels_test.go itest: manage context timeout inside network harness 2021-08-24 12:28:35 +08:00
log_check_errors.sh itest: fix log whitelist check 2020-12-09 08:06:16 +01:00
log_error_whitelist.txt itest: add batch funding test 2021-09-03 18:39:45 +02:00
log_substitutions.txt lntest: wait for chain sync in switch test 2021-05-10 16:46:28 +02:00
test_harness.go itest: manage context timeout inside network harness 2021-08-24 12:28:35 +08:00
utils.go lntest: replace commitType type with rpc alternative 2021-08-30 19:17:39 -07:00