Skip to content

Commit 5c4875a

Browse files
committed
lsps2: Test BOLT12 after LSP restart
Restart the selected provider after offer creation and prove that the variable-amount invoice request and JIT payment still complete. This retains the restart coverage from the earlier integration approach. Co-Authored-By: HAL 9000
1 parent d1ef13f commit 5c4875a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/integration_tests_rust.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3184,6 +3184,10 @@ async fn bolt12_lsps2_client_service_integration() {
31843184
.bolt12_payment()
31853185
.receive_variable_amount_via_jit_channel("variable", None, None)
31863186
.unwrap();
3187+
service_node.stop().unwrap();
3188+
service_node.start().unwrap();
3189+
let _ = payer_node.connect(service_node_id, service_addr.clone(), false);
3190+
let _ = client_node.connect(service_node_id, service_addr, false);
31873191
let variable_payment_id = payer_node
31883192
.bolt12_payment()
31893193
.send_using_amount(&variable_offer, variable_amount_msat, None, None, None)

0 commit comments

Comments
 (0)