Skip to content

Commit 6afe7af

Browse files
committed
fix: add back single factory test
1 parent 580afd2 commit 6afe7af

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

otelcol/command_components_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ func TestSortFactoriesByType(t *testing.T) {
267267
factories: map[component.Type]mockFactory{},
268268
wantTypes: []string{},
269269
},
270+
{
271+
name: "with a single factory",
272+
factories: map[component.Type]mockFactory{
273+
component.MustNewType("processor"): newMockFactory("processor"),
274+
},
275+
wantTypes: []string{"processor"},
276+
},
270277
{
271278
name: "with canonical factories only (sorted by type)",
272279
factories: map[component.Type]mockFactory{

0 commit comments

Comments
 (0)