mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-06 17:37:47 +08:00
fix(observability): preserve admin upstream error diagnostics
This commit is contained in:
@@ -1308,7 +1308,13 @@ mod tests {
|
||||
stored[0].error_type.as_deref(),
|
||||
Some("stream_missing_terminal_event")
|
||||
);
|
||||
assert!(stored[0].error_message.is_none());
|
||||
assert_eq!(
|
||||
stored[0].error_message.as_deref(),
|
||||
Some(super::STREAM_MISSING_TERMINAL_EVENT_MESSAGE)
|
||||
);
|
||||
let mut public_candidate = stored[0].clone();
|
||||
public_candidate.sanitize_sensitive_diagnostics();
|
||||
assert!(public_candidate.error_message.is_none());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in New Issue
Block a user