diff --git a/exporter/otlpexporter/config_test.go b/exporter/otlpexporter/config_test.go index 64c1999ca45..760418ae709 100644 --- a/exporter/otlpexporter/config_test.go +++ b/exporter/otlpexporter/config_test.go @@ -149,32 +149,32 @@ func TestEndpointPortParsing(t *testing.T) { name string }{ { - name: "test parsing port from sanitized endpoint", - endpoint: "localhost:1234", + name: "test parsing port from sanitized endpoint", + endpoint: "localhost:1234", expectedPort: "1234", errorExpected: false, }, { - name: "test parsing port from http endpoint", - endpoint: "http://localhost:1234", + name: "test parsing port from http endpoint", + endpoint: "http://localhost:1234", expectedPort: "1234", errorExpected: false, }, { - name: "test parsing port from https endpoint", - endpoint: "https://localhost:1234", + name: "test parsing port from https endpoint", + endpoint: "https://localhost:1234", expectedPort: "1234", errorExpected: false, }, { - name: "test parsing port from endpoint with path", - endpoint: "localhost:1234/path", + name: "test parsing port from endpoint with path", + endpoint: "localhost:1234/path", expectedPort: "1234", errorExpected: false, }, { - name: "test missing endpoint port", - endpoint: "localhost", + name: "test missing endpoint port", + endpoint: "localhost", expectedPort: "", errorExpected: true, },