From af69208d9554f88061651ae8ce290fefc3c9bf11 Mon Sep 17 00:00:00 2001 From: Nikolay Stanchev <ns17@it-innovation.soton.ac.uk> Date: Thu, 22 Mar 2018 11:49:54 +0000 Subject: [PATCH] Added a 1 second delay when posting the kapacitor configuration data to ensure the request is handled by the server before starting the test --- test/streaming/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/streaming/conftest.py b/test/streaming/conftest.py index 16a6a05..a727f0e 100644 --- a/test/streaming/conftest.py +++ b/test/streaming/conftest.py @@ -3,6 +3,7 @@ import pytest import yaml import requests +import time @pytest.fixture(scope="module", params=[{'config': {'rspec': '/vagrant/test/streaming/rspec.yml'}}]) @@ -29,3 +30,4 @@ def kapacitor_config(request): kapacitor_url = request.param['config']['kapacitor_url'] requests.post(url=kapacitor_url, data=data, headers={"Content-Type": "application/json"}) + time.sleep(1) -- GitLab