lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit 162e4ad160e5d8fc979714a35a017a148da2c651
parent bb13587f3d6f832038b1541f94e71ec483ec2264
Author: triesap <tyson@radroots.org>
Date:   Thu,  5 Mar 2026 19:55:34 +0000

nostr-runtime: reflow subscription policy asserts

- tighten subscription policy assert formatting in tests
- keep runtime logic unchanged
- retain existing expectations and coverage
- tests: cargo check -p radroots-nostr-runtime; cargo test -p radroots-nostr-runtime

Diffstat:
Mcrates/nostr-runtime/src/types.rs | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/crates/nostr-runtime/src/types.rs b/crates/nostr-runtime/src/types.rs @@ -173,10 +173,7 @@ mod tests { assert_eq!(spec.name.as_deref(), Some("posts")); assert_eq!(spec.stream_timeout_secs, 12); assert_eq!(spec.reconnect_delay_millis, 99); - assert_eq!( - spec.policy, - RadrootsNostrSubscriptionPolicy::OneShotOnEose - ); + assert_eq!(spec.policy, RadrootsNostrSubscriptionPolicy::OneShotOnEose); } #[test] @@ -190,10 +187,7 @@ mod tests { assert_eq!(spec.name.as_deref(), Some("posts")); assert_eq!(spec.stream_timeout_secs, 12); assert_eq!(spec.reconnect_delay_millis, 99); - assert_eq!( - spec.policy, - RadrootsNostrSubscriptionPolicy::OneShotOnEose - ); + assert_eq!(spec.policy, RadrootsNostrSubscriptionPolicy::OneShotOnEose); } #[test]