Skip to content

Commit fba462f

Browse files
committed
f Ensure lsps2_client_service_integration works for both trust modes
1 parent a1cf378 commit fba462f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/integration_tests_rust.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,8 +1552,12 @@ async fn unified_qr_send_receive() {
15521552

15531553
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
15541554
async fn lsps2_client_service_integration() {
1555-
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
1555+
do_lsps2_client_service_integration(true).await;
1556+
do_lsps2_client_service_integration(false).await;
1557+
}
15561558

1559+
async fn do_lsps2_client_service_integration(client_trusts_lsp: bool) {
1560+
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
15571561
let esplora_url = format!("http://{}", electrsd.esplora_url.as_ref().unwrap());
15581562

15591563
let sync_config = EsploraSyncConfig { background_sync_config: None };
@@ -1571,7 +1575,7 @@ async fn lsps2_client_service_integration() {
15711575
min_channel_lifetime: 100,
15721576
min_channel_opening_fee_msat: 0,
15731577
max_client_to_self_delay: 1024,
1574-
client_trusts_lsp: false,
1578+
client_trusts_lsp,
15751579
};
15761580

15771581
let service_config = random_config(true);

0 commit comments

Comments
 (0)