Skip to content

Commit 2a52174

Browse files
authored
Make it easier to debug test failures due to incorrect http-data (#6318)
1 parent aeda739 commit 2a52174

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tests/record.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,8 @@ fn replay_http(
363363

364364
async {
365365
let _ = &exchange;
366-
assert_eq!(
367-
to_bytes(req.into_body()).await.unwrap(),
368-
base64::decode(&exchange.request.body).unwrap()
369-
);
366+
let body = base64::encode(to_bytes(req.into_body()).await.unwrap());
367+
assert_eq!(&exchange.request.body, &body,);
370368

371369
let mut builder = Response::builder();
372370
for (key, value) in exchange.response.headers {

0 commit comments

Comments
 (0)