Skip to content
Snippets Groups Projects
Commit af69208d authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Added a 1 second delay when posting the kapacitor configuration data to ensure...

Added a 1 second delay when posting the kapacitor configuration data to ensure the request is handled by the server before starting the test
parent 0f8c9509
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment