From 0305c4c7f9b3c76b9e76ab04c5cda6f034876d4f Mon Sep 17 00:00:00 2001 From: xiami Date: Fri, 21 May 2021 13:17:23 -0700 Subject: [PATCH] Remove the OTLP receiver legacy gRPC port(55680) references --- .../OpenTelemetryProtocol/OtlpMetricExporterTests.swift | 4 ++-- .../OpenTelemetryProtocol/OtlpTraceExporterTests.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/ExportersTests/OpenTelemetryProtocol/OtlpMetricExporterTests.swift b/Tests/ExportersTests/OpenTelemetryProtocol/OtlpMetricExporterTests.swift index 3db8ba22..a0bde359 100644 --- a/Tests/ExportersTests/OpenTelemetryProtocol/OtlpMetricExporterTests.swift +++ b/Tests/ExportersTests/OpenTelemetryProtocol/OtlpMetricExporterTests.swift @@ -75,7 +75,7 @@ class OtlpMetricExproterTests: XCTestCase { // Start the server and print its address once it has started. let server = Server.insecure(group: serverGroup) .withServiceProviders([fakeCollector]) - .bind(host: "localhost", port: 55680) + .bind(host: "localhost", port: 4317) server.map { $0.channel.localAddress @@ -87,7 +87,7 @@ class OtlpMetricExproterTests: XCTestCase { func startChannel() -> ClientConnection { let channel = ClientConnection.insecure(group: channelGroup) - .connect(host: "localhost", port: 55680) + .connect(host: "localhost", port: 4317) return channel } diff --git a/Tests/ExportersTests/OpenTelemetryProtocol/OtlpTraceExporterTests.swift b/Tests/ExportersTests/OpenTelemetryProtocol/OtlpTraceExporterTests.swift index ee9e3844..a238b5b5 100644 --- a/Tests/ExportersTests/OpenTelemetryProtocol/OtlpTraceExporterTests.swift +++ b/Tests/ExportersTests/OpenTelemetryProtocol/OtlpTraceExporterTests.swift @@ -95,7 +95,7 @@ class OtlpTraceExporterTests: XCTestCase { // Start the server and print its address once it has started. let server = Server.insecure(group: serverGroup) .withServiceProviders([fakeCollector]) - .bind(host: "localhost", port: 55680) + .bind(host: "localhost", port: 4317) server.map { $0.channel.localAddress @@ -107,7 +107,7 @@ class OtlpTraceExporterTests: XCTestCase { func startChannel() -> ClientConnection { let channel = ClientConnection.insecure(group: channelGroup) - .connect(host: "localhost", port: 55680) + .connect(host: "localhost", port: 4317) return channel } }