From: Otto Date: Tue, 21 Dec 2021 16:36:08 +0000 (+0100) Subject: Wait for webserver before querying X-Git-Tag: auth-4.7.0-alpha1~90^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cf835f3e6f99c9f669e57225c6f72a989098b63;p=thirdparty%2Fpdns.git Wait for webserver before querying --- diff --git a/regression-tests.recursor-dnssec/test_Prometheus.py b/regression-tests.recursor-dnssec/test_Prometheus.py index 7c8c599e4b..dc82f80fd7 100644 --- a/regression-tests.recursor-dnssec/test_Prometheus.py +++ b/regression-tests.recursor-dnssec/test_Prometheus.py @@ -74,6 +74,7 @@ api-key=%s """ % (_wsPort, _wsPassword, _apiKey) def testPrometheus(self): + self.waitForTCPSocket("127.0.0.1", self._wsPort) url = 'http://user:' + self._wsPassword + '@127.0.0.1:' + str(self._wsPort) + '/metrics' r = requests.get(url, timeout=self._wsTimeout) self.assertTrue(r)