Closed mparent61 closed 8 years ago
Caused by accessing ES indices before shard allocation completed. Seems most apparent in test cases that don't call a "refresh" on search objects, like token auth tests.
Reference: http://stackoverflow.com/a/30311714
Sample Error: https://travis-ci.org/theonion/django-bulbs/jobs/115362885
Was able to recreate + verify fix locally. Travis builds seem fixed too.
Also threw in some lint fixes (see comments).
Also applies some lint + PY2/PY3 best practices
@benghaziboy @MichaelButkovic @collin
:+1: very nice
Caused by accessing ES indices before shard allocation completed. Seems most apparent in test cases that don't call a "refresh" on search objects, like token auth tests.
Reference: http://stackoverflow.com/a/30311714
Sample Error: https://travis-ci.org/theonion/django-bulbs/jobs/115362885
Was able to recreate + verify fix locally. Travis builds seem fixed too.
Also threw in some lint fixes (see comments).