mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-31 15:08:15 -08:00
feat: Support for custom osk (output key) domain separators in Rosenpass app
This allows for custom protocol extensions with custom domain separators to be used without modifying the Rosenpass source code
This commit is contained in:
@@ -561,7 +561,7 @@ mod tests {
|
||||
let mut file = FdIo(open_nullfd()?);
|
||||
let mut buf = [0; 10];
|
||||
assert!(matches!(file.read(&mut buf), Ok(0) | Err(_)));
|
||||
assert!(matches!(file.write(&buf), Err(_)));
|
||||
assert!(file.write(&buf).is_err());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -618,7 +618,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_lpe_error_conversion_downcast_invalid() {
|
||||
let pos_error = PositionOutOfBufferBounds;
|
||||
let sanity_error = SanityError::PositionOutOfBufferBounds(pos_error.into());
|
||||
let sanity_error = SanityError::PositionOutOfBufferBounds(pos_error);
|
||||
match MessageLenSanityError::try_from(sanity_error) {
|
||||
Ok(_) => panic!("Conversion should always fail (incompatible enum variant)"),
|
||||
Err(err) => assert!(matches!(err, PositionOutOfBufferBounds)),
|
||||
|
||||
@@ -302,6 +302,6 @@ mod test_forgetting {
|
||||
drop_was_called.store(false, SeqCst);
|
||||
let forgetting = Forgetting::new(SetFlagOnDrop(drop_was_called.clone()));
|
||||
drop(forgetting);
|
||||
assert_eq!(drop_was_called.load(SeqCst), false);
|
||||
assert!(!drop_was_called.load(SeqCst));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user