Skip to content

Commit

Permalink
We've fixed one, yes. But what about second broken test?
Browse files Browse the repository at this point in the history
  • Loading branch information
jade-guiton-dd committed Dec 4, 2024
1 parent 33e1fb1 commit d3aeb98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions exporter/datadogexporter/metrics_exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit d3aeb98

Please sign in to comment.