From a386ba531489ce5a569aba864c0c508eb6a42bc2 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 1 Feb 2024 09:57:05 +0100 Subject: [PATCH] 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. --- lightning-transaction-sync/Cargo.toml | 4 ++-- lightning-transaction-sync/tests/integration_tests.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5