Skip to content

Commit c7bdd4a

Browse files
committed
remove special logic for testing deprecated field
Signed-off-by: Florian Bacher <[email protected]>
1 parent 175cf54 commit c7bdd4a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

receiver/k8sclusterreceiver/receiver_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,7 @@ func setupReceiver(client *fake.Clientset, osQuotaClient quotaclientset.Interfac
371371
MetricsBuilderConfig: metadata.DefaultMetricsBuilderConfig(),
372372
}
373373

374-
if len(namespaces) == 1 {
375-
// if there is only ony namespace in the provided namespaces array, use the deprecated field to still cover the code related to that
376-
config.Namespace = namespaces[0]
377-
} else if len(namespaces) > 1 {
378-
config.Namespaces = namespaces
379-
}
374+
config.Namespaces = namespaces
380375

381376
if leaderElector.Type().String() == "k8s_leader_elector" {
382377
config.K8sLeaderElector = &leaderElector

0 commit comments

Comments
 (0)