commit 902fdb1293c67a8bafa1fbdee9179851dd26d281
parent c263f7787b217e4168a56374e782e133b5c4c6bf
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:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/core/crates/tera_ffi/tests/runtime_delegation.rs b/core/crates/tera_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()])