Skip to content

Commit

Permalink
[chore][receiver/datadog] Fix data race detected in tests (#34834)
Browse files Browse the repository at this point in the history
**Description:** <Describe what has changed.>
Fixes #34823

**Link to tracking Issue:** <Issue number if applicable>

**Testing:** <Describe what testing was performed and which tests were
added.>

**Documentation:** <Describe the documentation added.>
  • Loading branch information
lopes-felipe authored Aug 26, 2024
1 parent 49800d1 commit 2d5b62d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions receiver/datadogreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ func TestDatadogServer(t *testing.T) {
}

func TestDatadogInfoEndpoint(t *testing.T) {
cfg := createDefaultConfig().(*Config)
cfg.Endpoint = "localhost:0" // Using a randomly assigned address

for _, tc := range []struct {
name string
tracesConsumer consumer.Traces
Expand Down Expand Up @@ -214,6 +211,9 @@ func TestDatadogInfoEndpoint(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

cfg := createDefaultConfig().(*Config)
cfg.Endpoint = "localhost:0" // Using a randomly assigned address

dd, err := newDataDogReceiver(
cfg,
receivertest.NewNopSettings(),
Expand Down

0 comments on commit 2d5b62d

Please sign in to comment.