Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Dec 16, 2024
1 parent 40c4ce7 commit 085b7ba
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions receiver/simpleprometheusreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ func TestGetPrometheusConfig(t *testing.T) {
func TestGetPrometheusConfigWrapper(t *testing.T) {
clientConfig := confighttp.NewDefaultClientConfig()
clientConfig.Endpoint = defaultEndpoint
clientConfig.TLSSetting = configtls.ClientConfig{
clientConfig.TLSSetting = configtls.ClientConfig{}

clientConfigInsecure := confighttp.NewDefaultClientConfig()
clientConfigInsecure.Endpoint = defaultEndpoint
clientConfigInsecure.TLSSetting = configtls.ClientConfig{
Insecure: true,
}

Expand Down Expand Up @@ -276,7 +280,7 @@ func TestGetPrometheusConfigWrapper(t *testing.T) {
InsecureSkipVerify: true,
},
},
ClientConfig: clientConfig,
ClientConfig: clientConfigInsecure,
CollectionInterval: 10 * time.Second,
MetricsPath: "/metric",
Params: url.Values{"foo": []string{"bar", "foobar"}},
Expand Down Expand Up @@ -319,7 +323,7 @@ func TestGetPrometheusConfigWrapper(t *testing.T) {
httpConfig: httpConfig{
TLSEnabled: false,
},
ClientConfig: clientConfig,
ClientConfig: clientConfigInsecure,
CollectionInterval: 10 * time.Second,
MetricsPath: "/metric",
Params: url.Values{"foo": []string{"bar", "foobar"}},
Expand Down

0 comments on commit 085b7ba

Please sign in to comment.