Skip to content

Commit

Permalink
[chore] remove next nil consumer check (open-telemetry#31303)
Browse files Browse the repository at this point in the history
**Description:**
We are looking to deprecate component.ErrNilNextConsumer and have
pipelines check it rather than set it the expectation on every component
that the next component may be nil.

See open-telemetry/opentelemetry-collector#9526
for context.
  • Loading branch information
atoulme authored and XinRanZhAWS committed Mar 13, 2024
1 parent e30171d commit ab64b27
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions receiver/snowflakereceiver/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,6 @@ func TestCreateMetricsReceiver(t *testing.T) {
require.NoError(t, err, "failed to create metrics receiver with valid inputs")
},
},
{
desc: "Missing consumer",
run: func(t *testing.T) {
t.Parallel()

cfg := createDefaultConfig().(*Config)

_, err := createMetricsReceiver(
context.Background(),
receivertest.NewNopCreateSettings(),
cfg,
nil,
)

require.Error(t, err, "created metrics receiver without consumer")
},
},
}
for _, test := range tests {
t.Run(test.desc, test.run)
Expand Down

0 comments on commit ab64b27

Please sign in to comment.