[client] Calls: four MLS kinds (call, callAnswer, callIce, callEnd) with the frame key in the offer; coturn in the NixOS module; Caddy's global logger mkDefault; v0.3.0
This commit is contained in:
@@ -329,3 +329,13 @@ fn a_file_key_is_never_printed_and_a_file_id_prints_as_its_wire() {
|
||||
assert!(u64::from(MAX_FILE_CHUNKS) * plain >= 100 * 1024 * 1024);
|
||||
assert!(u64::from(MAX_FILE_CHUNKS - 1) * plain < 100 * 1024 * 1024);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_call_key_is_never_printed_and_a_call_id_prints_as_its_wire() {
|
||||
let key = CallKey::from_bytes([5; 32]);
|
||||
assert_eq!(format!("{key:?}"), "CallKey(..)");
|
||||
assert_eq!(CallKey::parse(&key.to_wire()), Ok(key));
|
||||
let id = CallId::from_bytes([6; 16]);
|
||||
assert_eq!(format!("{id:?}"), format!("CallId({})", id.to_wire()));
|
||||
assert!(CallId::parse(&id.to_wire()[..21]).is_err());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user