Skip to content

Commit

Permalink
Instantiate ID in pkg/stanza/adapter tests (open-telemetry#32966)
Browse files Browse the repository at this point in the history
**Description:** <Describe what has changed.>
In open-telemetry/opentelemetry-collector#10069,
I am making Type an interface. This means the zero value of Type will be
nil - which will cause this test to fail. Initializing ID instead of
relying on the zero value fixes this

---------

Co-authored-by: Pablo Baeyens <[email protected]>
Co-authored-by: Bogdan Drutu <[email protected]>
  • Loading branch information
3 people authored May 10, 2024
1 parent a4b0e59 commit 6015403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/stanza/adapter/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func TestFailOnNonStorageExtension(t *testing.T) {

func createReceiver(t *testing.T, storageID component.ID) *receiver {
params := rcvr.CreateSettings{
ID: component.MustNewID("testreceiver"),
TelemetrySettings: componenttest.NewNopTelemetrySettings(),
}

Expand Down

0 comments on commit 6015403

Please sign in to comment.