Skip to content

Commit

Permalink
[pipelines] Change test to not reuse same processor twice in one pipe…
Browse files Browse the repository at this point in the history
…line
  • Loading branch information
djaglowski committed Nov 14, 2022
1 parent d55b152 commit 8c534d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion service/internal/pipelines/pipelines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestBuild(t *testing.T) {
{
name: "pipelines_simple_multi_proc.yaml",
receiverIDs: []component.ID{component.NewID("examplereceiver")},
processorIDs: []component.ID{component.NewID("exampleprocessor"), component.NewID("exampleprocessor")},
processorIDs: []component.ID{component.NewID("exampleprocessor"), component.NewIDWithName("exampleprocessor", "1")},
exporterIDs: []component.ID{component.NewID("exampleexporter")},
expectedRequests: 1,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ receivers:

processors:
exampleprocessor:
exampleprocessor/1:

exporters:
exampleexporter:
Expand All @@ -11,15 +12,15 @@ service:
pipelines:
traces:
receivers: [examplereceiver]
processors: [exampleprocessor, exampleprocessor]
processors: [exampleprocessor, exampleprocessor/1]
exporters: [exampleexporter]

metrics:
receivers: [examplereceiver]
processors: [exampleprocessor, exampleprocessor]
processors: [exampleprocessor, exampleprocessor/1]
exporters: [exampleexporter]

logs:
receivers: [examplereceiver]
processors: [exampleprocessor, exampleprocessor]
processors: [exampleprocessor, exampleprocessor/1]
exporters: [exampleexporter]

0 comments on commit 8c534d6

Please sign in to comment.