Skip to content

Commit 8279e5b

Browse files
authored
[chore] Fix tests related to incorrect type for otelarrow receiver (#38263)
Signed-off-by: Bogdan Drutu <[email protected]>
1 parent 6bb304e commit 8279e5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

receiver/otelarrowreceiver/otelarrow_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ func TestGRPCArrowReceiver(t *testing.T) {
582582
cfg := factory.CreateDefaultConfig().(*Config)
583583
cfg.GRPC.NetAddr.Endpoint = addr
584584
cfg.GRPC.IncludeMetadata = true
585-
id := component.NewID(component.MustNewType("arrow"))
585+
id := component.NewID(componentmetadata.Type)
586586
tt := componenttest.NewNopTelemetrySettings()
587587
ocr := newReceiver(t, factory, tt, cfg, id, sink, nil)
588588

@@ -695,7 +695,7 @@ func TestGRPCArrowReceiverAuth(t *testing.T) {
695695
cfg.GRPC.Auth = &configauth.Authentication{
696696
AuthenticatorID: authID,
697697
}
698-
id := component.NewID(component.MustNewType("arrow"))
698+
id := component.NewID(componentmetadata.Type)
699699
tt := componenttest.NewNopTelemetrySettings()
700700
ocr := newReceiver(t, factory, tt, cfg, id, sink, nil)
701701

@@ -762,7 +762,7 @@ func TestConcurrentArrowReceiver(t *testing.T) {
762762
cfg := factory.CreateDefaultConfig().(*Config)
763763
cfg.GRPC.NetAddr.Endpoint = addr
764764
cfg.GRPC.IncludeMetadata = true
765-
id := component.NewID(component.MustNewType("arrow"))
765+
id := component.NewID(componentmetadata.Type)
766766
tt := componenttest.NewNopTelemetrySettings()
767767
ocr := newReceiver(t, factory, tt, cfg, id, sink, nil)
768768

0 commit comments

Comments
 (0)