Commit 16a89a6e by Tim Babych Committed by Oleg Marshev

wait for green

parent b311207c
......@@ -74,11 +74,7 @@ class BaseAnnotationViewTests(APITestCase):
def setUpClass(cls):
get_es().indices.create(index=settings.ES_INDEXES['default'], ignore=400)
get_es().indices.refresh()
for i in xrange(30):
if get_es().info()['status'] == 200:
return
sleep(0.5)
raise Exception("ES status is not 200")
get_es().cluster.health(wait_for_status='yellow')
@classmethod
def tearDownClass(cls):
......
......@@ -46,5 +46,10 @@ LOGGING = {
'level': 'ERROR',
'propagate': False,
},
"elasticsearch.trace": {
'handlers': ['console'],
'level': 'ERROR',
'propagate': False,
}
},
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment