Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use std::env;
use std::ffi::OsStr;
use std::hash::Hasher;
use std::net::SocketAddr;
use std::path::Path;
use std::process::{Child, Command, Output, Stdio};
use std::str;
use std::thread;
Expand Down Expand Up @@ -251,14 +252,20 @@ async fn render_multiple_ways_for_snapshots(
// behavior of the get command and HTTP request is
// different enough to be considered a bug.
else {
let sample_name = content_directory
.root()
.strip_prefix(sample_path("."))
.unwrap_or(Path::new("unknown"))
.display();
panic!(
"Rendering {} as {} produced different results when done via server and get command!\n \
"Rendering {} from {} as {} produced different results when done via server and get command!\n \
get command exit code: {}\n \
get command stdout: {}\n \
get command stderr: {}\n \
HTTP status code: {}\n \
HTTP response body: {}\n",
route,
sample_name,
accept,
get_command_output.status,
if get_command_output.stdout.len() > 64 {
Expand Down