From f8dcdcbde969614e4b6bf71767e35f1df7c21820 Mon Sep 17 00:00:00 2001 From: phala Date: Wed, 10 Apr 2024 13:19:22 +0200 Subject: [PATCH] Add message to _wait_for_scrape assert --- testsuite/openshift/metrics/prometheus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/openshift/metrics/prometheus.py b/testsuite/openshift/metrics/prometheus.py index 27c5d639..5461f98d 100644 --- a/testsuite/openshift/metrics/prometheus.py +++ b/testsuite/openshift/metrics/prometheus.py @@ -86,7 +86,7 @@ def _wait_for_scrape(): return call_time < datetime.fromisoformat(target["lastScrape"][:26]) return False - assert _wait_for_scrape() + assert _wait_for_scrape(), "Prometheus didn't reconcile ServiceMonitor in time" def close(self): """Close httpx client connection"""