Skip to content

Commit 27a6872

Browse files
committed
test: fix error from upstream error format change
Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent c4f3195 commit 27a6872

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rust/pact_verifier/src/pact_broker.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,13 +1363,13 @@ mod tests {
13631363
let client = HALClientBuilder::builder().with_url(pact_broker.url(), None).build();
13641364
let result = client.fetch("/nonhal").await;
13651365
pretty_assertions::assert_eq!(
1366-
format!("Error with the content of a HAL resource - Did not get a valid HAL response body from pact broker path \'/nonhal\' - error decoding response body. URL: '{}'",
1367-
pact_broker.url()), result.unwrap_err().to_string());
1366+
format!("Error with the content of a HAL resource - Did not get a valid HAL response body from pact broker path \'/nonhal\' - error decoding response body for url ({host}nonhal). URL: '{host}'",
1367+
host = pact_broker.url()), result.unwrap_err().to_string());
13681368

13691369
let result = client.fetch("/nonhal2").await;
13701370
pretty_assertions::assert_eq!(
1371-
format!("Error with the content of a HAL resource - Did not get a valid HAL response body from pact broker path \'/nonhal2\' - error decoding response body. URL: '{}'",
1372-
pact_broker.url()), result.unwrap_err().to_string());
1371+
format!("Error with the content of a HAL resource - Did not get a valid HAL response body from pact broker path \'/nonhal2\' - error decoding response body for url ({host}nonhal2). URL: '{host}'",
1372+
host = pact_broker.url()), result.unwrap_err().to_string());
13731373
}
13741374

13751375
#[test_log::test(tokio::test)]

0 commit comments

Comments
 (0)