Skip to content

Commit

Permalink
iOS Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mamunto committed Nov 6, 2024
1 parent 09e14b1 commit 950b431
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class OtlpHttpLogRecordExporterTests: XCTestCase {
attributes: ["event.name":AttributeValue.string("name"), "event.domain": AttributeValue.string("domain")])

let endpoint = URL(string: "http://localhost:\(testServer.serverPort)")!
let exporter = OtlpHttpLogExporter(endpoint: endpoint)
let exporter = OtlpHttpLogExporter(endpoint: endpoint, config: .init(compression: .none))
let _ = exporter.export(logRecords: [logRecord])

// TODO: Use protobuf to verify that we have received the correct Log records
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class OtlpHttpMetricsExporterTest: XCTestCase {
}

let endpoint = URL(string: "http://localhost:\(testServer.serverPort)")!
let exporter = OtlpHttpMetricExporter(endpoint: endpoint)
let exporter = OtlpHttpMetricExporter(endpoint: endpoint, config: .init(compression: .none))
let result = exporter.export(metrics: metrics) { () -> Bool in
false
}
Expand Down Expand Up @@ -83,7 +83,7 @@ class OtlpHttpMetricsExporterTest: XCTestCase {
}

let endpoint = URL(string: "http://localhost:\(testServer.serverPort)")!
let exporter = OtlpHttpMetricExporter(endpoint: endpoint)
let exporter = OtlpHttpMetricExporter(endpoint: endpoint, config: .init(compression: .none))

let result = exporter.export(metrics: metrics) { () -> Bool in
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class OtlpHttpTraceExporterTests: XCTestCase {
// It should ideally turn that body into [SpanData] using protobuf and then confirm content
func testExport() {
let endpoint = URL(string: "http://localhost:\(testServer.serverPort)/v1/traces")!
let exporter = OtlpHttpTraceExporter(endpoint: endpoint)
let exporter = OtlpHttpTraceExporter(endpoint: endpoint, config: .init(compression: .none))

var spans: [SpanData] = []
let endpointName1 = "/api/foo" + String(Int.random(in: 1...100))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class StableOtlpHttpMetricsExporterTest: XCTestCase {
}

let endpoint = URL(string: "http://localhost:\(testServer.serverPort)")!
let exporter = StableOtlpHTTPMetricExporter(endpoint: endpoint)
let exporter = StableOtlpHTTPMetricExporter(endpoint: endpoint, config: .init(compression: .none))
let result = exporter.export(metrics: metrics)
XCTAssertEqual(result, ExportResult.success)

Expand Down Expand Up @@ -95,7 +95,7 @@ class StableOtlpHttpMetricsExporterTest: XCTestCase {
}

let endpoint = URL(string: "http://localhost:\(testServer.serverPort)")!
let exporter = StableOtlpHTTPMetricExporter(endpoint: endpoint)
let exporter = StableOtlpHTTPMetricExporter(endpoint: endpoint, config: .init(compression: .none))
let result = exporter.export(metrics: metrics)
XCTAssertEqual(result, ExportResult.success)

Expand Down

0 comments on commit 950b431

Please sign in to comment.