Skip to content

Commit

Permalink
test: show filename of missing file, if test fails
Browse files Browse the repository at this point in the history
In ethportal-peertest, it showed that a file was missing, but not which
one. That information is critical, and self_peertest runs slowly, so
reducing reruns is very valuable.
  • Loading branch information
carver committed Sep 13, 2024
1 parent 29dd631 commit bad2ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethportal-peertest/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn read_history_content_key_value(
/// Wrapper function for fixtures that directly returns the tuple.
fn read_fixture(file_name: &str) -> (HistoryContentKey, HistoryContentValue) {
read_history_content_key_value(file_name)
.unwrap_or_else(|err| panic!("Error reading fixture: {err}"))
.unwrap_or_else(|err| panic!("Error reading fixture in {file_name}: {err}"))
}

/// History HeaderWithProof content key & value
Expand Down

0 comments on commit bad2ca3

Please sign in to comment.