Skip to content

Commit 593471b

Browse files
committed
fix: remove wallet feature attribute from test
Since keychains persistence functions do not have one. Also removed an unnecessary import in tests module.
1 parent 137fdc8 commit 593471b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -889,15 +889,13 @@ mod test {
889889
keychain_txout, local_chain,
890890
miniscript::descriptor::Descriptor,
891891
};
892-
#[cfg(feature = "wallet")]
893-
use bdk_wallet::keys::DescriptorPublicKey;
892+
894893
use std::sync::Arc;
895894
use std::{collections::BTreeMap, path::Path};
896895
use tempfile::NamedTempFile;
897896

898897
use bdk_testenv::{block_id, hash, utils};
899898

900-
#[cfg(feature = "wallet")]
901899
const DESCRIPTORS: [&str; 4] = [
902900
"tr([5940b9b9/86'/0'/0']tpubDDVNqmq75GNPWQ9UNKfP43UwjaHU4GYfoPavojQbfpyfZp2KetWgjGBRRAy4tYCrAA6SB11mhQAkqxjh1VtQHyKwT4oYxpwLaGHvoKmtxZf/1/*)#ypcpw2dr",
903901
"tr([5940b9b9/86'/0'/0']tpubDDVNqmq75GNPWQ9UNKfP43UwjaHU4GYfoPavojQbfpyfZp2KetWgjGBRRAy4tYCrAA6SB11mhQAkqxjh1VtQHyKwT4oYxpwLaGHvoKmtxZf/0/*)#44aqnlam",
@@ -928,7 +926,6 @@ mod test {
928926
assert_eq!(network_changeset, Some(Network::Bitcoin));
929927
}
930928

931-
#[cfg(feature = "wallet")]
932929
#[test]
933930
fn test_keychains_persistence() {
934931
let tmpfile = NamedTempFile::new().unwrap();
@@ -950,7 +947,6 @@ mod test {
950947
assert_eq!(*desc_changeset.get(&1).unwrap(), change_descriptor);
951948
}
952949

953-
#[cfg(feature = "wallet")]
954950
#[test]
955951
fn test_keychains_persistence_second() {
956952
let tmpfile = NamedTempFile::new().unwrap();
@@ -973,7 +969,6 @@ mod test {
973969
assert_eq!(*desc_changeset.get(&1).unwrap(), change_descriptor);
974970
}
975971

976-
#[cfg(feature = "wallet")]
977972
#[test]
978973
fn test_single_desc_persistence() {
979974
let tmpfile = NamedTempFile::new().unwrap();
@@ -994,7 +989,6 @@ mod test {
994989
assert_eq!(desc_changeset.get(&1), None);
995990
}
996991

997-
#[cfg(feature = "wallet")]
998992
#[test]
999993
fn test_descriptor_missing() {
1000994
let tmpfile = NamedTempFile::new().unwrap();

0 commit comments

Comments
 (0)