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
@@ -228,7 +228,8 @@ mod tests {
<ExposeHeader>*</ExposeHeader>
</CORSRule>
</CORSConfiguration>"#;
let conf: CorsConfiguration = from_str(message).unwrap();
let conf: CorsConfiguration =
from_str(message).expect("failed to deserialize xml into `CorsConfiguration` struct");
let ref_value = CorsConfiguration {
xmlns: (),
cors_rules: vec![
+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 {