Skip to content

Commit cd787dd

Browse files
committed
Fix CI
1 parent 2742647 commit cd787dd

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

confmap/internal/e2e/types_test.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"go.opentelemetry.io/collector/confmap"
1515
"go.opentelemetry.io/collector/confmap/provider/envprovider"
1616
"go.opentelemetry.io/collector/confmap/provider/fileprovider"
17+
"go.opentelemetry.io/collector/featuregate"
1718
)
1819

1920
type TargetField string
@@ -552,14 +553,6 @@ logging:
552553
}
553554

554555
func TestIndirectSliceEnvVar(t *testing.T) {
555-
previousValue := globalgates.StrictlyTypedInputGate.IsEnabled()
556-
err := featuregate.GlobalRegistry().Set(globalgates.StrictlyTypedInputID, true)
557-
require.NoError(t, err)
558-
defer func() {
559-
seterr := featuregate.GlobalRegistry().Set(globalgates.StrictlyTypedInputID, previousValue)
560-
require.NoError(t, seterr)
561-
}()
562-
563556
// This replicates the situation in https://github.com/open-telemetry/opentelemetry-collector/issues/10799
564557
// where a configuration file is loaded that contains a reference to a slice of strings in an environment variable.
565558
t.Setenv("BASE_FOLDER", "testdata")

service/go.sum

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)