Skip to content

Commit 1421b28

Browse files
committed
Adds confirmation of callOptions customMetadata in tests.
1 parent 19f9b8e commit 1421b28

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Tests/ExportersTests/OpenTelemetryProtocol/OtlpMetricExporterTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class OtlpMetricExproterTests: XCTestCase {
6969
XCTAssertNotNil(exporter.config.headers)
7070
XCTAssertEqual(exporter.config.headers?[0].0, "FOO")
7171
XCTAssertEqual(exporter.config.headers?[0].1, "BAR")
72+
XCTAssertEqual("BAR", exporter.callOptions?.customMetadata.first(name: "FOO"))
7273
}
7374

7475
func testConfigHeadersAreSet_whenInitCalledWithExplicitHeaders() throws {

Tests/ExportersTests/OpenTelemetryProtocol/OtlpTraceExporterTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class OtlpTraceExporterTests: XCTestCase {
7474
XCTAssertNotNil(exporter.config.headers)
7575
XCTAssertEqual(exporter.config.headers?[0].0, "FOO")
7676
XCTAssertEqual(exporter.config.headers?[0].1, "BAR")
77+
XCTAssertEqual("BAR", exporter.callOptions?.customMetadata.first(name: "FOO"))
7778
}
7879

7980
func testConfigHeadersAreSet_whenInitCalledWithExplicitHeaders() throws {

0 commit comments

Comments
 (0)