Skip to content

Commit

Permalink
[chore][receiver/oracledb] Fix empty ID in test (#30991)
Browse files Browse the repository at this point in the history
**Description:** Similar to #30917 and #30925, the ID was empty before.

**Link to tracking Issue:** This is needed to make contrib tests pass on
open-telemetry/opentelemetry-collector#9414
  • Loading branch information
mx-psi authored Feb 1, 2024
1 parent 38db988 commit 2f5b0bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions receiver/oracledbreceiver/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ import (
"go.opentelemetry.io/collector/receiver"
noopmetric "go.opentelemetry.io/otel/metric/noop"
nooptrace "go.opentelemetry.io/otel/trace/noop"

"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/oracledbreceiver/internal/metadata"
)

func TestNewFactory(t *testing.T) {
factory := NewFactory()
_, err := factory.CreateMetricsReceiver(
context.Background(),
receiver.CreateSettings{
ID: component.NewID(metadata.Type),
TelemetrySettings: component.TelemetrySettings{
TracerProvider: nooptrace.NewTracerProvider(),
MeterProvider: noopmetric.NewMeterProvider(),
Expand Down

0 comments on commit 2f5b0bc

Please sign in to comment.