Skip to content

Commit 04810be

Browse files
committed
test(pact_ffi): Fill content for xml elements that's not the first
1 parent f9f86bc commit 04810be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/pact_ffi/tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ fn http_xml_consumer_with_examples_and_content_test() {
664664
Ok(res) => {
665665
expect!(res.status()).to(be_eq(200));
666666
expect!(res.headers().get("Content-Type").unwrap()).to(be_eq("application/xml"));
667-
expect!(res.text().unwrap_or_default()).to(be_equal_to("<?xml version='1.0'?><items><item><name>Item 1</name><price>10</price></item><item><name/><price/></item><item><name/><price/></item>Item list</items>"));
667+
expect!(res.text().unwrap_or_default()).to(be_equal_to("<?xml version='1.0'?><items><item><name>Item 1</name><price>10</price></item><item><name>Item 1</name><price>10</price></item><item><name>Item 1</name><price>10</price></item>Item list</items>"));
668668
},
669669
Err(_) => {
670670
panic!("expected 200 response but request failed");

0 commit comments

Comments
 (0)