mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-04 00:18:41 +00:00
fix(torrents): preserve metadata retention on malformed records
This commit is contained in:
@@ -3928,6 +3928,8 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn torrent_options_reject_invalid_peer_values() {
|
||||
assert!(normalize_torrent_max_peers(Some(-1)).is_err());
|
||||
|
||||
let mut options = serde_json::Map::new();
|
||||
let payload = SpawnPayload {
|
||||
is_torrent: true,
|
||||
|
||||
Reference in New Issue
Block a user