Commit 332ab969 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Fix typefind test if typefind factories without caps are available

parent bc23d6a6
......@@ -248,7 +248,7 @@ mod tests {
.cloned()
.find(|f| {
f.get_caps()
.map(|c| c.get_structure(0).unwrap().get_name() == "application/xml")
.map(|c| c.get_structure(0).map(|s| s.get_name() == "application/xml").unwrap_or(false))
.unwrap_or(false)
})
.unwrap();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment