-
Notifications
You must be signed in to change notification settings - Fork 405
Replace manual node reloading with a macro/function in tests #1853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace manual node reloading with a macro/function in tests #1853
Conversation
Codecov ReportBase: 90.68% // Head: 90.68% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #1853 +/- ##
=======================================
Coverage 90.68% 90.68%
=======================================
Files 89 89
Lines 47947 47947
Branches 47947 47947
=======================================
Hits 43481 43481
Misses 4466 4466 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
a2d6703
to
017901d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, basically LGTM! And the added bonus of taming the functional_tests
behemoth a bit :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
017901d
to
ef79105
Compare
Restored the previous default-config: $ git diff-tree -U1 017901def ef7910590
diff --git a/lightning/src/ln/payment_tests.rs b/lightning/src/ln/payment_tests.rs
index 1d9d27568..ade02c48c 100644
--- a/lightning/src/ln/payment_tests.rs
+++ b/lightning/src/ln/payment_tests.rs
@@ -574,3 +574,3 @@ fn do_test_completed_payment_not_retryable_on_reload(use_dust: bool) {
- reload_node!(nodes[0], nodes_0_serialized, &[&chan_0_monitor_serialized], first_persister, first_new_chain_monitor, first_nodes_0_deserialized);
+ reload_node!(nodes[0], test_default_channel_config(), nodes_0_serialized, &[&chan_0_monitor_serialized], first_persister, first_new_chain_monitor, first_nodes_0_deserialized);
nodes[1].node.peer_disconnected(&nodes[0].node.get_our_node_id(), false);
@@ -666,3 +666,3 @@ fn do_test_completed_payment_not_retryable_on_reload(use_dust: bool) {
- reload_node!(nodes[0], nodes_0_serialized, &[&chan_0_monitor_serialized, &chan_1_monitor_serialized], second_persister, second_new_chain_monitor, second_nodes_0_deserialized);
+ reload_node!(nodes[0], test_default_channel_config(), nodes_0_serialized, &[&chan_0_monitor_serialized, &chan_1_monitor_serialized], second_persister, second_new_chain_monitor, second_nodes_0_deserialized);
nodes[1].node.peer_disconnected(&nodes[0].node.get_our_node_id(), false);
@@ -686,3 +686,3 @@ fn do_test_completed_payment_not_retryable_on_reload(use_dust: bool) {
// Ensure that after reload we cannot retry the payment.
- reload_node!(nodes[0], nodes_0_serialized, &[&chan_0_monitor_serialized, &chan_1_monitor_serialized], third_persister, third_new_chain_monitor, third_nodes_0_deserialized);
+ reload_node!(nodes[0], test_default_channel_config(), nodes_0_serialized, &[&chan_0_monitor_serialized, &chan_1_monitor_serialized], third_persister, third_new_chain_monitor, third_nodes_0_deserialized);
nodes[1].node.peer_disconnected(&nodes[0].node.get_our_node_id(), false); |
ef79105
to
97b210d
Compare
Grr, sorry, had to rebase to address a trivial conflict. |
Fixes #1696