From ce31cf2d8baa1d8ce672c22d9a7d10860819ebe0 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 8 Nov 2023 16:40:01 +0100 Subject: [PATCH] f Just `unwrap` --- lightning-transaction-sync/tests/integration_tests.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lightning-transaction-sync/tests/integration_tests.rs b/lightning-transaction-sync/tests/integration_tests.rs index 4887dc88c78..1406420c100 100644 --- a/lightning-transaction-sync/tests/integration_tests.rs +++ b/lightning-transaction-sync/tests/integration_tests.rs @@ -421,13 +421,7 @@ fn test_electrum_syncs() { generate_blocks_and_wait(&bitcoind, &electrsd, 101); let mut logger = TestLogger::new(); let electrum_url = format!("tcp://{}", electrsd.electrum_url); - let tx_sync = match ElectrumSyncClient::new(electrum_url, &mut logger) { - Ok(tx_sync) => tx_sync, - Err(e) => { - eprintln!("{:?}", e); - panic!("{:?}", e); - } - }; + let tx_sync = ElectrumSyncClient::new(electrum_url, &mut logger).unwrap(); let confirmable = TestConfirmable::new(); // Check we pick up on new best blocks