Skip to content

Commit aa1bdf8

Browse files
mx-psiDougManton
authored andcommitted
[chore] Fix component.Type string literal (open-telemetry#31548)
**Description:** Needed for open-telemetry/opentelemetry-collector/pull/9472
1 parent a526cc5 commit aa1bdf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/configschema/docsgen/docsgen/cli_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212

1313
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"
15+
"go.opentelemetry.io/collector/component"
1516
"go.opentelemetry.io/collector/otelcol"
1617

1718
"github.com/open-telemetry/opentelemetry-collector-contrib/cmd/configschema"
@@ -29,7 +30,7 @@ func TestWriteConfigDoc(t *testing.T) {
2930
dr,
3031
configschema.CfgInfo{
3132
Group: "receiver",
32-
Type: "redis",
33+
Type: component.MustNewType("redis"),
3334
CfgInstance: cfg,
3435
},
3536
func(dir string, bytes []byte, perm os.FileMode) error {

0 commit comments

Comments
 (0)