diff --git a/tests/unit/charts/test_base.py b/tests/unit/charts/test_base.py index 18e86fe71..d1968dac0 100644 --- a/tests/unit/charts/test_base.py +++ b/tests/unit/charts/test_base.py @@ -39,9 +39,8 @@ def deployment(self): @property def exporter_service(self): - return self.manifests.by_query("kind: Service AND metadata.name: logprep-logprep-exporter")[ - 0 - ] + query = "kind: Service AND metadata.name: logprep-logprep-exporter" + return self.manifests.by_query(query)[0] class TestLogprepChart(TestBaseChartTest):