test: replace some unwrap with expect in tests

this add more information in case of failure
This commit is contained in:
Gwen Lg
2026-01-29 00:09:54 +01:00
committed by Alex
parent 69cd230568
commit 780f389973
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -416,7 +416,8 @@ mod tests {
</RoutingRule>
</RoutingRules>
</WebsiteConfiguration>"#;
let conf: WebsiteConfiguration = from_str(message).unwrap();
let conf: WebsiteConfiguration =
from_str(message).expect("failed to deserialize xml in `WebsiteConfiguration`");
let ref_value = WebsiteConfiguration {
xmlns: (),
error_document: Some(Key {