diff --git a/core/archipelago/src/fips/anchors.rs b/core/archipelago/src/fips/anchors.rs index 075baf8d..e7ee3dcd 100644 --- a/core/archipelago/src/fips/anchors.rs +++ b/core/archipelago/src/fips/anchors.rs @@ -358,10 +358,10 @@ mod tests { // Removing every default leaves an empty authoritative list that must // not be re-seeded on next load. let dir = tempfile::tempdir().unwrap(); - remove(dir.path(), ARCHY_ANCHOR_NPUB).await.unwrap(); - let list = remove(dir.path(), DEFAULT_PUBLIC_ANCHOR_NPUB) - .await - .unwrap(); + let mut list = Vec::new(); + for anchor in default_public_anchors() { + list = remove(dir.path(), &anchor.npub).await.unwrap(); + } assert!(list.is_empty()); let got = load(dir.path()).await.unwrap(); assert!(got.is_empty(), "defaults must stay removed once edited");