Skip to content

Commit 37d874f

Browse files
committed
f Expand test case to blocking HTTPS
1 parent 0d00cd3 commit 37d874f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning-transaction-sync/tests/integration_tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ async fn test_esplora_syncs() {
350350
}
351351

352352
#[tokio::test]
353-
#[cfg(feature = "esplora-async-https")]
353+
#[cfg(any(feature = "esplora-async-https", feature = "esplora_blocking"))]
354354
async fn test_esplora_connects_to_public_server() {
355355
let mut logger = TestLogger {};
356356
let esplora_url = "https://blockstream.info/api".to_string();
@@ -359,6 +359,9 @@ async fn test_esplora_connects_to_public_server() {
359359

360360
// Check we connect and pick up on new best blocks
361361
assert_eq!(confirmable.best_block.lock().unwrap().1, 0);
362+
#[cfg(feature = "esplora-async-https")]
362363
tx_sync.sync(vec![&confirmable]).await.unwrap();
364+
#[cfg(feature = "esplora-blocking")]
365+
tx_sync.sync(vec![&confirmable]).unwrap();
363366
assert_ne!(confirmable.best_block.lock().unwrap().1, 0);
364367
}

0 commit comments

Comments
 (0)