test(e2e): browse a firewalled peer via the server broker

Add an e2e that forces the server-brokered (firewalled) browse path —
the path that matters on the real network. The sharer does NOT listen,
so the browser's direct dial fails and the server must broker the peer
connecting back to the browser's listener. This exercises
PeerConnectFailed -> ConnectToPeer -> inbound PierceFirewall ->
PeerConnected flush, which the localhost direct-dial test never hits.

Also soften user-facing download failure reasons from protocol jargon
("Peer …") to plain language ("The user went offline", etc.).
This commit is contained in:
michel
2026-07-19 20:49:26 +02:00
parent 60896619d7
commit 1b62d218dd
3 changed files with 66 additions and 5 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ pub fn collect_failed_tokens(
})
.map(|d| {
let _ = d.sender.send(DownloadStatus::Failed(Some(
"Peer reported the upload failed".to_string(),
"The upload failed on the other side".to_string(),
)));
d.token
})