From fb6d30bcdeca428da1d920752c374fe721f9f9fe Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Sat, 15 Feb 2020 11:11:03 +0100 Subject: [PATCH] Try: sleep --- metricbeat/module/haproxy/test_haproxy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metricbeat/module/haproxy/test_haproxy.py b/metricbeat/module/haproxy/test_haproxy.py index bd585317070..09953c142b6 100644 --- a/metricbeat/module/haproxy/test_haproxy.py +++ b/metricbeat/module/haproxy/test_haproxy.py @@ -1,5 +1,6 @@ import os import sys +import time import unittest from nose.plugins.attrib import attr @@ -44,6 +45,7 @@ def test_info_socket(self): def _test_stat(self): proc = self.start_beat() + time.sleep(10) self.wait_until(lambda: self.output_lines() > 0) proc.check_kill_and_wait() self.assert_no_logged_warnings()