Fix typefind test if typefind factories without caps are available

This commit is contained in:
Sebastian Dröge 2018-07-06 10:32:24 +02:00
parent bc23d6a6cd
commit 332ab9690f

View file

@ -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();