Skip to content

Commit

Permalink
Formatting for changes to the otlp exporter config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atmask committed Feb 26, 2024
1 parent 95ed97f commit e9f8173
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions exporter/otlpexporter/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit e9f8173

Please sign in to comment.