Skip to content

Commit

Permalink
chore: show body in not_found e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelmmiguel committed Oct 5, 2023
1 parent b775e96 commit d4ad3a9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,18 @@ mod test {
}
};

let body = match request_body(url) {
Ok(body) => body,
Err(err) => {
eprintln!("[E2E] Error getting the body from the request to {url}");
eprintln!("[E2E] Error: {}", err);
String::new()
}
};

codes.push((url, code));

println!("[E2E] URL: {url} / Status code: {code}");
println!("[E2E] URL: {url} / Status code: {code} / Body: {body}");
}

println!("[E2E] Stopping wws process [{}]", &child.id());
Expand Down

0 comments on commit d4ad3a9

Please sign in to comment.