From 177971380d5ee5e5d5bb92a4748c895ed3297e3f Mon Sep 17 00:00:00 2001 From: nickwest Date: Thu, 12 Oct 2023 02:48:55 -0700 Subject: [PATCH] fix cargo test error --- interface/src/sign_change_pubkey.rs | 1 + provider/tests/test_rpc.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/interface/src/sign_change_pubkey.rs b/interface/src/sign_change_pubkey.rs index 8e800fca..e2f12c6b 100644 --- a/interface/src/sign_change_pubkey.rs +++ b/interface/src/sign_change_pubkey.rs @@ -104,6 +104,7 @@ pub fn create_signed_change_pubkey( Ok(Arc::new(tx)) } +#[cfg(not(feature = "ffi"))] #[cfg(test)] mod test { use super::*; diff --git a/provider/tests/test_rpc.rs b/provider/tests/test_rpc.rs index f9c67c84..4ec87ebf 100644 --- a/provider/tests/test_rpc.rs +++ b/provider/tests/test_rpc.rs @@ -1,3 +1,4 @@ +#[cfg(not(feature = "ffi"))] #[cfg(test)] mod test { use jsonrpsee::http_client::HttpClientBuilder;