We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unwrap
1 parent e95d29b commit ce31cf2Copy full SHA for ce31cf2
lightning-transaction-sync/tests/integration_tests.rs
@@ -421,13 +421,7 @@ fn test_electrum_syncs() {
421
generate_blocks_and_wait(&bitcoind, &electrsd, 101);
422
let mut logger = TestLogger::new();
423
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
- };
+ let tx_sync = ElectrumSyncClient::new(electrum_url, &mut logger).unwrap();
431
let confirmable = TestConfirmable::new();
432
433
// Check we pick up on new best blocks
0 commit comments