Skip to content

Commit ce31cf2

Browse files
committed
f Just unwrap
1 parent e95d29b commit ce31cf2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lightning-transaction-sync/tests/integration_tests.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,7 @@ fn test_electrum_syncs() {
421421
generate_blocks_and_wait(&bitcoind, &electrsd, 101);
422422
let mut logger = TestLogger::new();
423423
let electrum_url = format!("tcp://{}", electrsd.electrum_url);
424-
let tx_sync = match ElectrumSyncClient::new(electrum_url, &mut logger) {
425-
Ok(tx_sync) => tx_sync,
426-
Err(e) => {
427-
eprintln!("{:?}", e);
428-
panic!("{:?}", e);
429-
}
430-
};
424+
let tx_sync = ElectrumSyncClient::new(electrum_url, &mut logger).unwrap();
431425
let confirmable = TestConfirmable::new();
432426

433427
// Check we pick up on new best blocks

0 commit comments

Comments
 (0)