lib

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

commit 313ff445cffe806e98d83effd702b167a3ba5866
parent 51f0db035bb25558da50fa3a3379c0646ee24f0b
Author: triesap <tyson@radroots.org>
Date:   Thu, 20 Aug 2026 04:58:30 +0000

test(mobile): align explicit relay replacement

- Intent: Align FFI delegation assertions with exact caller-supplied relay profiles.
- Why: The stale test still expected retired implicit default relay injection.
- Verification: Mobile FFI all-target tests and warnings-denied Clippy passed through extbuild.
- Risk: Test-only correction; public and device profiles now assert their exact configured URL.

Diffstat:
Mcrates/mobile_ffi/tests/runtime_delegation.rs | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/crates/mobile_ffi/tests/runtime_delegation.rs b/crates/mobile_ffi/tests/runtime_delegation.rs @@ -58,8 +58,9 @@ async fn native_boundary_delegates_the_complete_core_surface() { .sdk_relay_status() .expect("relay status") .expect("public profile"); - assert_eq!(public.relays.len(), 2); - assert_eq!(public.relays[1].access, FfiRelayAccessRecord::ReadWrite); + assert_eq!(public.relays.len(), 1); + assert_eq!(public.relays[0].relay_url, "wss://write.example"); + assert_eq!(public.relays[0].access, FfiRelayAccessRecord::ReadWrite); assert!( runtime .configure_public_relays(vec!["ws://127.0.0.1:7447".to_owned()]) @@ -157,7 +158,9 @@ async fn native_boundary_delegates_the_complete_core_surface() { .expect("relay status") .expect("device profile"); assert_eq!(device.profile, "device_development"); - assert_eq!(device.relays.len(), 2); + assert_eq!(device.relays.len(), 1); + assert_eq!(device.relays[0].relay_url, "wss://10.0.0.5:7447"); + assert_eq!(device.relays[0].access, FfiRelayAccessRecord::ReadWrite); assert!( runtime .configure_device_relays(vec!["wss://127.0.0.1:7447".to_owned()])