Skip to content

Commit a386ba5

Browse files
committed
Disable lightning-transaction-sync integration tests on Windows
.. as the `electrsd` crate doesn't support it. While we previously did so in our CI script, we now also `cfg`-gate the tests and dependencies for easier handling.
1 parent 5bf58f0 commit a386ba5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightning-transaction-sync/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ electrum-client = { version = "0.18.0", optional = true }
3434
lightning = { version = "0.0.121", path = "../lightning", default-features = false, features = ["std", "_test_utils"] }
3535
tokio = { version = "1.35.0", features = ["full"] }
3636

37-
[target.'cfg(not(no_download))'.dev-dependencies]
37+
[target.'cfg(all(not(target_os = "windows"), not(no_download)))'.dev-dependencies]
3838
electrsd = { version = "0.26.0", default-features = false, features = ["legacy", "esplora_a33e97e1", "bitcoind_25_0"] }
3939

40-
[target.'cfg(no_download)'.dev-dependencies]
40+
[target.'cfg(all(not(target_os = "windows"), no_download))'.dev-dependencies]
4141
electrsd = { version = "0.26.0", default-features = false, features = ["legacy"] }

lightning-transaction-sync/tests/integration_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))]
1+
#![cfg(all(not(target_os = "windows"), any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum")))]
22

33
#[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))]
44
use lightning_transaction_sync::EsploraSyncClient;

0 commit comments

Comments
 (0)