Skip to content

Commit

Permalink
check time sleep fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed May 29, 2018
1 parent 287a1c0 commit 44358cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metricbeat/tests/system/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 44358cf

Please sign in to comment.