We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4722268 commit cad9594Copy full SHA for cad9594
1 file changed
tests/unit/array/conftest.py
@@ -2,6 +2,7 @@
2
import time
3
4
import pytest
5
+from elasticsearch import Elasticsearch
6
7
cur_dir = os.path.dirname(os.path.abspath(__file__))
8
compose_yml = os.path.abspath(os.path.join(cur_dir, 'docker-compose.yml'))
@@ -13,7 +14,10 @@ def start_storage():
13
14
f"docker-compose -f {compose_yml} --project-directory . up --build -d "
15
f"--remove-orphans"
16
)
- time.sleep(20)
17
+ es = Elasticsearch(hosts='http://localhost:9200/')
18
+ while not es.ping():
19
+ time.sleep(0.5)
20
+
21
yield
22
os.system(
23
f"docker-compose -f {compose_yml} --project-directory . down "
0 commit comments