Skip to content

Commit

Permalink
Try: sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Tojek committed Feb 18, 2020
1 parent d8c6387 commit fb6d30b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metricbeat/module/haproxy/test_haproxy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
import time
import unittest
from nose.plugins.attrib import attr

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit fb6d30b

Please sign in to comment.