File tree 1 file changed +4
-1
lines changed
lightning-transaction-sync/tests
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ async fn test_esplora_syncs() {
350
350
}
351
351
352
352
#[ tokio:: test]
353
- #[ cfg( feature = "esplora-async-https" ) ]
353
+ #[ cfg( any ( feature = "esplora-async-https" , feature = "esplora_blocking" ) ) ]
354
354
async fn test_esplora_connects_to_public_server ( ) {
355
355
let mut logger = TestLogger { } ;
356
356
let esplora_url = "https://blockstream.info/api" . to_string ( ) ;
@@ -359,6 +359,9 @@ async fn test_esplora_connects_to_public_server() {
359
359
360
360
// Check we connect and pick up on new best blocks
361
361
assert_eq ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , 0 ) ;
362
+ #[ cfg( feature = "esplora-async-https" ) ]
362
363
tx_sync. sync ( vec ! [ & confirmable] ) . await . unwrap ( ) ;
364
+ #[ cfg( feature = "esplora-blocking" ) ]
365
+ tx_sync. sync ( vec ! [ & confirmable] ) . unwrap ( ) ;
363
366
assert_ne ! ( confirmable. best_block. lock( ) . unwrap( ) . 1 , 0 ) ;
364
367
}
You can’t perform that action at this time.
0 commit comments