From d3aeb9806ccdf9778d9c1f16742a2e7b7deef79a Mon Sep 17 00:00:00 2001 From: Jade Guiton Date: Wed, 4 Dec 2024 17:16:24 +0100 Subject: [PATCH] We've fixed one, yes. But what about second broken test? --- exporter/datadogexporter/metrics_exporter_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/exporter/datadogexporter/metrics_exporter_test.go b/exporter/datadogexporter/metrics_exporter_test.go index e7d2aede5b2c..33dd4ddbf830 100644 --- a/exporter/datadogexporter/metrics_exporter_test.go +++ b/exporter/datadogexporter/metrics_exporter_test.go @@ -442,6 +442,11 @@ func TestNewExporter_Zorkian(t *testing.T) { CumulativeMonotonicMode: CumulativeMonotonicSumModeToDelta, }, }, + HostMetadata: config.HostMetadataConfig{ + Enabled: true, + ReporterPeriod: 30 * time.Minute, + HostnameSource: HostnameSourceFirstResource, + }, } params := exportertest.NewNopSettings() f := NewFactory() @@ -456,8 +461,6 @@ func TestNewExporter_Zorkian(t *testing.T) { require.NoError(t, err) assert.Empty(t, server.MetadataChan) - cfg.HostMetadata.Enabled = true - cfg.HostMetadata.HostnameSource = HostnameSourceFirstResource testMetrics = pmetric.NewMetrics() testutil.TestMetrics.CopyTo(testMetrics) err = exp.ConsumeMetrics(context.Background(), testMetrics)