Skip to content

Commit 9e7a36e

Browse files
committed
Add extra header to with_headers test
1 parent cb81eb6 commit 9e7a36e

File tree

1 file changed

+4
-1
lines changed
  • opentelemetry-otlp/src/exporter/http

1 file changed

+4
-1
lines changed

opentelemetry-otlp/src/exporter/http/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,10 @@ mod tests {
675675
use std::collections::HashMap;
676676
// Arrange
677677
let initial_headers = HashMap::from([("k1".to_string(), "v1".to_string())]);
678-
let extra_headers = HashMap::from([("k2".to_string(), "v2".to_string())]);
678+
let extra_headers = HashMap::from([
679+
("k2".to_string(), "v2".to_string()),
680+
("k3".to_string(), "v3".to_string()),
681+
]);
679682
let expected_headers = initial_headers.iter().chain(extra_headers.iter()).fold(
680683
HashMap::new(),
681684
|mut acc, (k, v)| {

0 commit comments

Comments
 (0)