Skip to content

Commit 7a79acf

Browse files
committed
Fixed unit tests
1 parent 0551a98 commit 7a79acf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

internal/manifests/collector/container_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@ func TestContainerWithCertManagerAvailable(t *testing.T) {
873873

874874
flgs := featuregate.Flags(colfg.GlobalRegistry())
875875
err := flgs.Parse([]string{"--feature-gates=operator.targetallocator.mtls"})
876+
otelcol.Spec.TargetAllocator.Enabled = true
877+
876878
require.NoError(t, err)
877879

878880
// test

internal/manifests/collector/volume_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func TestVolumeWithTargetAllocatorMTLS(t *testing.T) {
106106

107107
flgs := featuregate.Flags(colfg.GlobalRegistry())
108108
err := flgs.Parse([]string{"--feature-gates=operator.targetallocator.mtls"})
109+
otelcol.Spec.TargetAllocator.Enabled = true
109110
require.NoError(t, err)
110111

111112
volumes := Volumes(cfg, otelcol)

0 commit comments

Comments
 (0)