Skip to content

Commit 659b068

Browse files
committed
better log
1 parent 79fcbc4 commit 659b068

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

opentelemetry-otlp/tests/integration_test/src/metric_helpers.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ pub fn assert_metrics_results_contains(expected_content: &str) -> Result<()> {
100100
let mut contents = String::new();
101101
let mut reader = std::io::BufReader::new(&file);
102102
reader.read_to_string(&mut contents)?;
103-
assert!(contents.contains(expected_content));
103+
assert!(
104+
contents.contains(expected_content),
105+
"Expected content {} not found in actual content {}",
106+
expected_content,
107+
contents
108+
);
104109
Ok(())
105110
}
106111

0 commit comments

Comments
 (0)