diff --git a/config/v0.2.0/metric_test.go b/config/v0.2.0/metric_test.go index cf2145be0fd..79e706a30cc 100644 --- a/config/v0.2.0/metric_test.go +++ b/config/v0.2.0/metric_test.go @@ -149,7 +149,7 @@ func TestReader(t *testing.T) { Exporter: MetricExporter{ Prometheus: &Prometheus{ Host: ptr("localhost"), - Port: ptr(8888), + Port: ptr(0), WithoutScopeInfo: ptr(true), WithoutUnits: ptr(true), WithoutTypeSuffix: ptr(true), diff --git a/config/v0.3.0/metric_test.go b/config/v0.3.0/metric_test.go index 07defc008bb..b6c6d095fa8 100644 --- a/config/v0.3.0/metric_test.go +++ b/config/v0.3.0/metric_test.go @@ -150,7 +150,7 @@ func TestReader(t *testing.T) { Exporter: PullMetricExporter{ Prometheus: &Prometheus{ Host: ptr("localhost"), - Port: ptr(8888), + Port: ptr(0), WithoutScopeInfo: ptr(true), WithoutUnits: ptr(true), WithoutTypeSuffix: ptr(true),