From 44358cf38c4ce9117ff43f676430aab9a6d6cb09 Mon Sep 17 00:00:00 2001 From: ruflin Date: Tue, 29 May 2018 06:46:10 +0200 Subject: [PATCH] check time sleep fix --- metricbeat/tests/system/test_http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/metricbeat/tests/system/test_http.py b/metricbeat/tests/system/test_http.py index 47ffc3255e6d..8fced28d64c3 100644 --- a/metricbeat/tests/system/test_http.py +++ b/metricbeat/tests/system/test_http.py @@ -55,6 +55,7 @@ def test_server(self): self.wait_until(lambda: self.log_contains("Starting http server on ")) + time.sleep(2) requests.post(self.get_host(), json={'hello': 'world'}, headers={'Content-Type': 'application/json'}) self.wait_until(lambda: self.output_lines() > 0) proc.check_kill_and_wait()