Skip to content

Commit 8d912f5

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 b02b5a9 commit 8d912f5

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
@@ -3326,6 +3326,10 @@ async fn bolt12_lsps2_client_service_integration() {
33263326
.bolt12_payment()
33273327
.receive_variable_amount_via_jit_channel("variable", None, None)
33283328
.unwrap();
3329+
service_node.stop().unwrap();
3330+
service_node.start().unwrap();
3331+
let _ = payer_node.connect(service_node_id, service_addr.clone(), false);
3332+
let _ = client_node.connect(service_node_id, service_addr, false);
33293333
let variable_payment_id = payer_node
33303334
.bolt12_payment()
33313335
.send_using_amount(&variable_offer, variable_amount_msat, None, None, None)

0 commit comments

Comments
 (0)