From: Elias Rohrer Date: Thu, 1 Feb 2024 08:57:05 +0000 (+0100) Subject: Disable `lightning-transaction-sync` integration tests on Windows X-Git-Tag: v0.0.123-beta~67^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a386ba531489ce5a569aba864c0c508eb6a42bc2;p=rust-lightning 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. --- diff --git a/lightning-transaction-sync/Cargo.toml b/lightning-transaction-sync/Cargo.toml index 26a82809e..4118d3012 100644 --- a/lightning-transaction-sync/Cargo.toml +++ b/lightning-transaction-sync/Cargo.toml @@ -34,8 +34,8 @@ electrum-client = { version = "0.18.0", optional = true } lightning = { version = "0.0.121", path = "../lightning", default-features = false, features = ["std", "_test_utils"] } tokio = { version = "1.35.0", features = ["full"] } -[target.'cfg(not(no_download))'.dev-dependencies] +[target.'cfg(all(not(target_os = "windows"), not(no_download)))'.dev-dependencies] electrsd = { version = "0.26.0", default-features = false, features = ["legacy", "esplora_a33e97e1", "bitcoind_25_0"] } -[target.'cfg(no_download)'.dev-dependencies] +[target.'cfg(all(not(target_os = "windows"), no_download))'.dev-dependencies] electrsd = { version = "0.26.0", default-features = false, features = ["legacy"] } diff --git a/lightning-transaction-sync/tests/integration_tests.rs b/lightning-transaction-sync/tests/integration_tests.rs index 8aadf9a2e..48044b236 100644 --- a/lightning-transaction-sync/tests/integration_tests.rs +++ b/lightning-transaction-sync/tests/integration_tests.rs @@ -1,4 +1,4 @@ -#![cfg(any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum"))] +#![cfg(all(not(target_os = "windows"), any(feature = "esplora-blocking", feature = "esplora-async", feature = "electrum")))] #[cfg(any(feature = "esplora-blocking", feature = "esplora-async"))] use lightning_transaction_sync::EsploraSyncClient;