Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
This will probably make ES tests a lot happier.
Browse files Browse the repository at this point in the history
After refreshing indexes, wait for ES to claim it is ready to go again (yellow means there is a set of all data in some indexes, though not fully redundant yet.)
  • Loading branch information
mythmon committed Mar 14, 2013
1 parent 2be156d commit 4d7e5ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/amo/tests/__init__.py
Expand Up @@ -693,6 +693,7 @@ def send(cls):
def refresh(cls, index='default', timesleep=0):
process.send(None)
cls.es.refresh(settings.ES_INDEXES[index], timesleep=timesleep)
cls.es.health(wait_for_status='yellow')

@classmethod
def reindex(cls, model):
Expand Down

0 comments on commit 4d7e5ad

Please sign in to comment.